Minor changes

This commit is contained in:
2024-12-29 02:36:04 +01:00
parent d0c08c25fd
commit e9dfcf7870
2 changed files with 10 additions and 20 deletions

View File

@ -48,7 +48,7 @@ export function useGamePointerHandlers(scene: Phaser.Scene, layer: Phaser.Tilema
if (distance <= dragThreshold) {
const pointerTile = getTile(layer, pointer.worldX, pointer.worldY)
if (pointerTile) {
gameStore.connection?.emit('character:move', {
gameStore.connection?.emit('zone:character:move', {
positionX: pointerTile.x,
positionY: pointerTile.y
})