forked from noxious/client
Map event tile improvements
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user