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

This commit is contained in:
YourWishes committed 2025-11-24 13:13:49 -06:00
1 parent f9006a90d5
commit 01cbfaae95
9 files changed
+1059 -12

No files matched your search

+6 -6
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