Skip to content

Commit

Permalink
Update to Godot 4.2
Browse files Browse the repository at this point in the history
In Godot 4.2, the GDScript parser recognizes Object() as an error and
requires the use of Object.new() instead.

This is a breaking change, because Object.new() didn't work in previous
versions of Godot.

Closes #4.
  • Loading branch information
Pennycook committed Jan 3, 2024
1 parent 030a534 commit 8a009d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/utility_ai/core/utility_ai_option.gd
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func _set(property: StringName, value: Variant) -> bool:
TYPE_STRING:
action = String()
TYPE_OBJECT:
action = Object()
action = Object.new()
TYPE_DICTIONARY:
action = Dictionary()
TYPE_ARRAY:
Expand Down
2 changes: 1 addition & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ config_version=5
[application]

config/name="Utility AI"
config/features=PackedStringArray("4.0", "Forward Plus")
config/features=PackedStringArray("4.2", "Forward Plus")

[editor_plugins]

Expand Down

0 comments on commit 8a009d9

Please sign in to comment.