From d4b2c93414dbf35f3cfe4ec9ff8a76f1be2fad3a Mon Sep 17 00:00:00 2001 From: Nitwel Date: Mon, 6 May 2024 12:45:45 +0200 Subject: [PATCH] fix spawning entities --- app/content/ui/menu/edit/edit_menu.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/content/ui/menu/edit/edit_menu.gd b/app/content/ui/menu/edit/edit_menu.gd index fa5feb2..a4db3d2 100644 --- a/app/content/ui/menu/edit/edit_menu.gd +++ b/app/content/ui/menu/edit/edit_menu.gd @@ -21,7 +21,7 @@ func _ready(): var entity=House.body.create_entity(entity_name, global_position) - if entity == false: + if typeof(entity) == TYPE_BOOL&&entity == false: EventSystem.notify("Entity is not in Room", EventNotify.Type.INFO) if entity == null: