From 38c7fe1b48286abdaf905361e4e36ea268c5392c Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Fri, 22 Apr 2016 09:49:39 -0400 Subject: [PATCH] fixed map markers for names that are numbers by converting to string before using --- generator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/generator.py b/generator.py index 9743aa6..84f17f0 100644 --- a/generator.py +++ b/generator.py @@ -1118,6 +1118,7 @@ class MTChunks: player_dict["index"] = int(sub_name[:-4]) # repair index if "playerid" in player_dict: if (player_dict["playerid"] is not None) and (player_dict["playerid"]!=""): + player_dict["playerid"] = str(player_dict["playerid"]) # in case was detected as int, change back to string since is a name and so name string will be found as dict key when checked later self.players[player_dict["playerid"]] = player_dict if self.verbose_enable: print("Loading map entry index '"+str(player_dict["index"])+"' for playerid '"+str(player_dict["playerid"])+"'")