From 9ea7acbb6e0f6aa618417d91b6a95c558a708fdc Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Wed, 23 Mar 2016 18:00:56 -0400 Subject: [PATCH] debugging use of this_player --- generator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/generator.py b/generator.py index a1e45ff..9305759 100644 --- a/generator.py +++ b/generator.py @@ -1120,7 +1120,7 @@ class MTChunks: break ins.close() player_index = None - this_player = None + #this_player = None is_changed = False #(mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime) = os.stat(file_path) moved_mtime = time.gmtime() @@ -1131,8 +1131,8 @@ class MTChunks: #this_mtime_string = datetime.strftime(mtime, INTERNAL_TIME_FORMAT_STRING) if file_name in self.players: #this_player = self.players[file_name] - if ("utc_mtime" not in this_player): - #or (this_player["utc_mtime"]!=this_mtime_string): + if ("utc_mtime" not in self.players[file_name]): + #or (self.players[file_name]["utc_mtime"]!=this_mtime_string): self.players[file_name]["utc_mtime"]=this_mtime_string is_changed = True #not necessarily moved--even if resaved by server, may not have moved a whole block or at all @@ -1182,7 +1182,7 @@ class MTChunks: #if is_enough_data: #if player_name!="singleplayer": - #this_player = get_dict_from_conf_file(player_dest_path,":") + #self.players[file_name] = get_dict_from_conf_file(player_dest_path,":") #map_player_position_tuple = None saved_player_x = None saved_player_y = None