fix spawning entities

This commit is contained in:
Nitwel 2024-05-06 12:45:45 +02:00
parent 4c4b0fdd2a
commit d4b2c93414

View File

@ -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: