Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hit/2d/hit_state_manager_2d.gd
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func _ready() -> void:
func _get_configuration_warnings() -> PackedStringArray:
var warnings: PackedStringArray = []

if get_children().any(func(node): node is FrayHitState2D):
if not get_children().any(func(node): return node is FrayHitState2D):
warnings.append("This node has no hit states so there is nothing to manage. Consider adding a FrayHitState2D as a child.")

return warnings
Expand Down
2 changes: 1 addition & 1 deletion src/hit/3d/hit_state_manager_3d.gd
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func _ready() -> void:
func _get_configuration_warnings() -> PackedStringArray:
var warnings: PackedStringArray = []

if get_children().any(func(node): node is FrayHitState3D):
if not get_children().any(func(node): return node is FrayHitState3D):
warnings.append("This node has no hit states so there is nothing to manage. Consider adding a FrayHitState3D as a child.")

return warnings
Expand Down