mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-12 17:07:55 -04:00
fix world entities not properly removing entites
This commit is contained in:
parent
1d8dacc37e
commit
cdaa65dfec
@ -116,8 +116,8 @@ class WorldEntities : Iterable<Entity> {
|
|||||||
idEntityMap.put(entityId, entity)
|
idEntityMap.put(entityId, entity)
|
||||||
lock.unlock()
|
lock.unlock()
|
||||||
return
|
return
|
||||||
|
|
||||||
}
|
}
|
||||||
|
entities -= entity
|
||||||
entityIdMap.removeInt(entity)
|
entityIdMap.removeInt(entity)
|
||||||
val uuid = entityUUIDMap.remove(entity)
|
val uuid = entityUUIDMap.remove(entity)
|
||||||
if (uuid != null) {
|
if (uuid != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user