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) } }