bugfix: savestation colliding with itself

This commit is contained in:
Felipe M 2021-05-22 18:48:24 +02:00
parent c5a54977ac
commit b0c5798328
Signed by: fmartingr
GPG key ID: 716BC147715E716F
3 changed files with 3 additions and 0 deletions

View file

@ -5,6 +5,7 @@ const save_path = "user://savegame.save"
var is_loading = false
func save_game():
print("Saving game")
var save_game = File.new()
save_game.open(save_path, File.WRITE)
var persistingNodes = get_tree().get_nodes_in_group("Persists")