Merge pull request #116 from Nitwel/fix-110

Warn user when room got deleted
This commit is contained in:
Nitwel 2024-03-17 18:12:55 +01:00 committed by GitHub
commit fb3f931bb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,6 +72,7 @@ func _ready():
edit_room=false
if !House.body.is_valid_room(selected_room):
EventSystem.notify("Room was deleted as it had less than 3 corners.", EventNotify.Type.WARNING)
House.body.delete_room(selected_room)
selected_room=null
else: