Trying to find entity editor bug
Some checks failed
Build Dusk / build-linux (push) Failing after 41s
Build Dusk / build-psp (push) Failing after 1m1s

This commit is contained in:
2025-11-24 13:13:49 -06:00
parent f9006a90d5
commit 01cbfaae95
9 changed files with 1059 additions and 12 deletions

View File

@@ -118,14 +118,14 @@ class EntityPanel(QWidget):
chunk = self.parent.map.getChunkAtWorldPos(*position)
if chunk is None:
return
localX = position[0] - chunk.x
localY = position[1] - chunk.y
localZ = position[2] - chunk.z
localX = (position[0] - chunk.x) % CHUNK_WIDTH
localY = (position[1] - chunk.y) % CHUNK_HEIGHT
localZ = (position[2] - chunk.z) % CHUNK_DEPTH
for ent in chunk.entities.values():
if ent.localX != localX or ent.localY != localY or ent.localZ != localZ:
continue
continue
self.onEntitySelect(ent)
self.entityList.setCurrentItem(ent.item)
break