From de4d2e2fb833c640143ee30de849c7795e9d59aa Mon Sep 17 00:00:00 2001 From: Shomy <61943525+shomykohai@users.noreply.github.com> Date: Tue, 9 Jul 2024 06:30:48 +0200 Subject: [PATCH] Use backwards compatible syntax --- addons/pandora/model/entity.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/pandora/model/entity.gd b/addons/pandora/model/entity.gd index 9b2d434..15fee9e 100644 --- a/addons/pandora/model/entity.gd +++ b/addons/pandora/model/entity.gd @@ -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