From 38eddc0276a3026eaace1e31db304f1a63e3b9a2 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Mon, 22 Apr 2024 23:02:04 +0700 Subject: [PATCH] Fix orientation update not updating spatial index --- .../dbotthepony/kstarbound/world/entities/tile/WorldObject.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/world/entities/tile/WorldObject.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/world/entities/tile/WorldObject.kt index 4e07b4fe..c0fc7953 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/world/entities/tile/WorldObject.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/world/entities/tile/WorldObject.kt @@ -400,6 +400,9 @@ open class WorldObject(val config: Registry.Entry) : TileEntit } else { declaredMaterialSpaces.clear() } + + updateSpatialPosition() + markSpacesDirty() } override fun onPositionUpdated() {