diff --git a/src/component/node_state_machine/node_state_machine.gd b/src/component/node_state_machine/node_state_machine.gd index d7b686f..1a414cc 100644 --- a/src/component/node_state_machine/node_state_machine.gd +++ b/src/component/node_state_machine/node_state_machine.gd @@ -77,7 +77,7 @@ func change_state(next_state: NodeStateMachineState): func set_current_state(next_state: NodeStateMachineState): - if not get_parent().is_inside_tree(): + if not is_inside_tree() or not get_parent().is_inside_tree(): queued_state = next_state return diff --git a/src/project.godot b/src/project.godot index 813393b..a2867c6 100644 --- a/src/project.godot +++ b/src/project.godot @@ -12,7 +12,8 @@ config_version=5 config/name="Project Template" run/main_scene="uid://cygqjanirnqqt" -config/features=PackedStringArray("4.4", "GL Compatibility") +config/features=PackedStringArray("4.5", "GL Compatibility") +config/tags=PackedStringArray("100devs") [autoload]