From 4d88917526d2928427b8cf983cad241b6f6f2561 Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Mon, 13 Jan 2025 11:02:04 +0100 Subject: [PATCH] Loading placed map objects works again --- src/components/game/map/MapTiles.vue | 2 +- src/components/game/map/partials/PlacedMapObject.vue | 2 +- src/components/gameMaster/mapEditor/MapEditor.vue | 8 +++----- .../gameMaster/mapEditor/mapPartials/PlacedMapObject.vue | 2 +- .../gameMaster/mapEditor/mapPartials/PlacedMapObjects.vue | 2 +- src/components/screens/MapEditor.vue | 1 - src/stores/gameStore.ts | 5 +---- 7 files changed, 8 insertions(+), 14 deletions(-) diff --git a/src/components/game/map/MapTiles.vue b/src/components/game/map/MapTiles.vue index 030894c..d93fe3e 100644 --- a/src/components/game/map/MapTiles.vue +++ b/src/components/game/map/MapTiles.vue @@ -11,7 +11,7 @@ import { FlattenMapArray, loadMapTilesIntoScene, setLayerTiles } from '@/composa import { MapStorage } from '@/storage/storages' import { useMapStore } from '@/stores/mapStore' import { useScene } from 'phavuer' -import { onBeforeUnmount, onMounted, shallowRef } from 'vue' +import { onBeforeUnmount, shallowRef } from 'vue' import Tileset = Phaser.Tilemaps.Tileset diff --git a/src/components/game/map/partials/PlacedMapObject.vue b/src/components/game/map/partials/PlacedMapObject.vue index 6d0c94e..6d0d76c 100644 --- a/src/components/game/map/partials/PlacedMapObject.vue +++ b/src/components/game/map/partials/PlacedMapObject.vue @@ -1,5 +1,5 @@