From 0161a000b590970bd2e47b7d0fa6f2ac92c58964 Mon Sep 17 00:00:00 2001 From: Player Name Date: Mon, 27 Jul 2026 06:46:43 +0000 Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s) Co-authored-by: GregF --- Server/src/main/core/game/world/map/RegionManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/main/core/game/world/map/RegionManager.kt b/Server/src/main/core/game/world/map/RegionManager.kt index 8a78e0a99..425aab878 100644 --- a/Server/src/main/core/game/world/map/RegionManager.kt +++ b/Server/src/main/core/game/world/map/RegionManager.kt @@ -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)