From d3416ef9b99d8ea9891ba6cf26799742052abc98 Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Wed, 23 Mar 2016 17:49:07 -0400 Subject: [PATCH] debugging player position updates --- generator.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/generator.py b/generator.py index 47a6329..5f42991 100644 --- a/generator.py +++ b/generator.py @@ -1227,7 +1227,14 @@ class MTChunks: if self.verbose_enable: print("SAVING YAML for player '"+str(player_name)+"'") players_saved_count += 1 + save_conf_from_dict(player_dest_path, this_player, ":", save_nulls_enable=False) + + #prevent resaving over and over: + this_player["x"] = player_x + this_player["y"] = player_y + this_player["z"] = player_z + #outs = open(player_dest_path, 'w') #outs.write("id:"+file_name) #if player_name is not None: