Changed free() to queue_free() in destroy_player() so it can be called when the node is used
parent
ef7e08c32c
commit
e5cd4bd1f9
|
@ -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
|
||||
|
||||
|
|
Reference in New Issue