Handle UUID player files semi-nicely in POIgen (14w10a+, 1.7.6+)
This commit is contained in:
@@ -132,7 +132,11 @@ def handlePlayers(rset, render, worldpath):
|
||||
dimension = int(mystdim.group(1))
|
||||
else:
|
||||
raise
|
||||
# TODO: get player names from UUIDs once Mojang makes available an API to do it
|
||||
playerdir = os.path.join(worldpath, "playerdata")
|
||||
if not os.path.isdir(playerdir):
|
||||
playerdir = os.path.join(worldpath, "players")
|
||||
|
||||
if os.path.isdir(playerdir):
|
||||
playerfiles = os.listdir(playerdir)
|
||||
playerfiles = [x for x in playerfiles if x.endswith(".dat")]
|
||||
|
||||
Reference in New Issue
Block a user