Skip to content

Commit

Permalink
Use backwards compatible syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
shomykohai authored Jul 9, 2024
1 parent 8435b17 commit de4d2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/pandora/model/entity.gd
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ func get_resource(property_name: String) -> Resource:
# Here, instead of returning the default value and casting it to Resource,
# we check its type and we handle it accordingly.
var default_value = get_entity_property(property_name).get_default_value()
if default_value is not Resource:
if not default_value is Resource:
return load(default_value)
return default_value

Expand Down

0 comments on commit de4d2e2

Please sign in to comment.