From f309d023f04ef06be047333ca27a0b6b63ec2c07 Mon Sep 17 00:00:00 2001 From: Nitwel Date: Sat, 27 Jan 2024 15:16:30 +0100 Subject: [PATCH] remove invalid room --- content/system/house/room/states/edit.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/system/house/room/states/edit.gd b/content/system/house/room/states/edit.gd index bf05e46..a796d32 100644 --- a/content/system/house/room/states/edit.gd +++ b/content/system/house/room/states/edit.gd @@ -273,4 +273,7 @@ func update_store(): store_room.corners = corners store_room.height = room.room_ceiling.position.y + if corners.size() > 3: + Store.house.rooms.erase(store_room) + Store.house.save_local()