Skip to content

Commit

Permalink
Fix compiled script not being assigned to entities (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
shomykohai committed Jul 9, 2024
1 parent add509f commit 90f4514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/pandora/util/script_util.gd
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static func create_entity_from_script(

static func _get_entity_class(path: String) -> GDScript:
var EntityClass = load(path)
if EntityClass == null or not EntityClass.has_source_code():
if EntityClass == null:
push_warning("Unable to find " + path + " - defaulting to PandoraEntity instead.")
EntityClass = PandoraEntityScript
return EntityClass
Expand Down

0 comments on commit 90f4514

Please sign in to comment.