Add ID instead of object when adding map object
This commit is contained in:
parent
c56c2796c4
commit
5ef11f3157
@ -39,7 +39,7 @@ function pencil(pointer: Phaser.Input.Pointer, map: MapT) {
|
|||||||
|
|
||||||
const newPlacedMapObject: PlacedMapObjectT = {
|
const newPlacedMapObject: PlacedMapObjectT = {
|
||||||
id: uuidv4(),
|
id: uuidv4(),
|
||||||
mapObject: mapEditor.selectedMapObject.value,
|
mapObject: mapEditor.selectedMapObject.value.id,
|
||||||
isRotated: false,
|
isRotated: false,
|
||||||
positionX: tile.x,
|
positionX: tile.x,
|
||||||
positionY: tile.y
|
positionY: tile.y
|
||||||
|
Loading…
x
Reference in New Issue
Block a user