Apply 1 suggestion(s) to 1 file(s)

Co-authored-by: GregF <gregf36665@gmail.com>
This commit is contained in:
Player Name 2026-07-27 06:46:43 +00:00
parent d65eee6e8c
commit 0161a000b5

View file

@ -349,7 +349,7 @@ object RegionManager {
* @return The scenery, or `null` if no object was found.
*/
@JvmStatic
fun getObject(z: Int, x: Int, y: Int, objectId: Int, type: Int): Scenery? {
fun getObject(z: Int, x: Int, y: Int, objectId: Int, type: Int = -1): Scenery? {
val loc = Location(x, y, z)
val region = forId(loc.regionId)
Region.load(region)