Skip to content

Commit 22c0777

Browse files
authored
Merge pull request #242 from endlessm/godot-4-2-compatibility
Fix error in simple_spawner.gd with Godot 4.2.2
2 parents 9f26461 + 99e2dc1 commit 22c0777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/block_code/simple_spawner/simple_spawner.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func spawn_once():
7979
if scenes.size() == 0:
8080
return
8181

82-
_spawned_scenes = _spawned_scenes.filter(is_instance_valid)
82+
_spawned_scenes = _spawned_scenes.filter(func(instance): return is_instance_valid(instance))
8383

8484
if spawn_limit != 0 and _spawned_scenes.size() >= spawn_limit:
8585
if limit_behavior == LimitBehavior.NO_SPAWN:

0 commit comments

Comments
 (0)