diff --git a/imperium-mindustry/src/main/kotlin/com/xpdustry/imperium/mindustry/security/LogicImageListener.kt b/imperium-mindustry/src/main/kotlin/com/xpdustry/imperium/mindustry/security/LogicImageListener.kt index e0bfcb82..93df30e2 100644 --- a/imperium-mindustry/src/main/kotlin/com/xpdustry/imperium/mindustry/security/LogicImageListener.kt +++ b/imperium-mindustry/src/main/kotlin/com/xpdustry/imperium/mindustry/security/LogicImageListener.kt @@ -194,6 +194,7 @@ class LogicImageListener(instances: InstanceManager) : ImperiumApplication.Liste var building = event.tile.build if (event.breaking && building is ConstructBlock.ConstructBuild && + building.prevBuild != null && !building.prevBuild.isEmpty) { building = building.prevBuild.first() }