diff options
Diffstat (limited to 'src/main/kotlin/dulkirmod/features')
-rw-r--r-- | src/main/kotlin/dulkirmod/features/MemoryLeakFix.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/dulkirmod/features/MemoryLeakFix.kt b/src/main/kotlin/dulkirmod/features/MemoryLeakFix.kt index 0c7fcb9..d0976b9 100644 --- a/src/main/kotlin/dulkirmod/features/MemoryLeakFix.kt +++ b/src/main/kotlin/dulkirmod/features/MemoryLeakFix.kt @@ -41,6 +41,7 @@ object MemoryLeakFix { if (it !is EntityArmorStand) return@forEach if (it.name != "Armor Stand") return@forEach if (it.inventory.any{slot -> slot != null}) return@forEach + if (it.motionX != 0.toDouble() || it.motionY != 0.toDouble() || it.motionZ != 0.toDouble()) return@forEach world.removeEntityFromWorld(it.entityId) } } |