1
0
forked from noxious/client

Add ID instead of object when adding map object

This commit is contained in:
Dennis Postma 2025-02-09 22:40:06 +01:00
parent c56c2796c4
commit 5ef11f3157

View File

@ -39,7 +39,7 @@ function pencil(pointer: Phaser.Input.Pointer, map: MapT) {
const newPlacedMapObject: PlacedMapObjectT = {
id: uuidv4(),
mapObject: mapEditor.selectedMapObject.value,
mapObject: mapEditor.selectedMapObject.value.id,
isRotated: false,
positionX: tile.x,
positionY: tile.y