Merge pull request #116 from Nitwel/fix-110
Warn user when room got deleted
This commit is contained in:
commit
fb3f931bb8
|
@ -72,6 +72,7 @@ func _ready():
|
||||||
edit_room=false
|
edit_room=false
|
||||||
|
|
||||||
if !House.body.is_valid_room(selected_room):
|
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)
|
House.body.delete_room(selected_room)
|
||||||
selected_room=null
|
selected_room=null
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user