Fixed double clicking to ent
Some checks failed
Build Dusk / build-linux (push) Failing after 1m8s
Build Dusk / build-psp (push) Has been cancelled

This commit is contained in:
2025-11-25 08:23:27 -06:00
parent f9a64b8d54
commit d068f0f2c3

View File

@@ -70,9 +70,9 @@ class EntityPanel(QWidget):
def onEntityDoubleClicked(self, item):
entity = item.data(Qt.UserRole)
chunk = entity.chunk
worldX = chunk.x + entity.localX
worldY = chunk.y + entity.localY
worldZ = chunk.z + entity.localZ
worldX = (chunk.x * CHUNK_WIDTH) + entity.localX
worldY = (chunk.y * CHUNK_HEIGHT) + entity.localY
worldZ = (chunk.z * CHUNK_DEPTH) + entity.localZ
self.parent.map.moveTo(worldX, worldY, worldZ)
def onEntityClicked(self, item):