Changed free() to queue_free() in destroy_player() so it can be called when the node is used

remotes/1705725415861086127/tmp_refs/heads/main
unfa 2021-09-20 00:24:55 +02:00
parent ef7e08c32c
commit e5cd4bd1f9
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ func push_local_player_info(): #
player_node.name = str(player_node.name) + "_dead" # avoids name collision when instancing another player scene
print("before free")
player_node.free()
player_node.queue_free()
print("after free")
spawn_queue[pid] = uptime + respawn_delay