1
0
forked from noxious/client

Map event tile improvements

This commit is contained in:
2025-01-05 06:22:28 +01:00
parent 0142850983
commit b54b825422
5 changed files with 14 additions and 13 deletions

View File

@ -51,7 +51,7 @@ function pencil(pointer: Phaser.Input.Pointer) {
if (existingEventTile) return
// If teleport, check if there is a selected map
if (mapEditorStore.drawMode === 'teleport' && !mapEditorStore.teleportSettings.toMapId) return
if (mapEditorStore.drawMode === 'teleport' && !mapEditorStore.teleportSettings.toMap) return
const newEventTile = {
id: uuidv4(),
@ -63,7 +63,7 @@ function pencil(pointer: Phaser.Input.Pointer) {
teleport:
mapEditorStore.drawMode === 'teleport'
? {
toMapId: mapEditorStore.teleportSettings.toMapId,
toMap: mapEditorStore.teleportSettings.toMap,
toPositionX: mapEditorStore.teleportSettings.toPositionX,
toPositionY: mapEditorStore.teleportSettings.toPositionY,
toRotation: mapEditorStore.teleportSettings.toRotation