From f9fe93383f7109da5462e233609b8c6a8b690dd8 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Mon, 22 Apr 2024 17:52:43 +0700 Subject: [PATCH] Now root mechanics is properly handled by damageTiles --- .../ru/dbotthepony/kstarbound/server/world/ServerWorld.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerWorld.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerWorld.kt index 0b6e8937..cb51ba15 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerWorld.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerWorld.kt @@ -238,10 +238,7 @@ class ServerWorld private constructor( if (broken) { killedEntities.add(entity) - - for (pos in damagePositions) { - entityDamageResults.remove(pos) - } + entityDamageResults.keys.removeAll(damagePositions) } }