From ddd2d2973d78e1ce5bb0c2a6c29ee408e6136ff1 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Mon, 1 Nov 2010 17:34:22 -1000 Subject: [PATCH] Dimension is oddly enough a TAG_Long --- mclevel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mclevel.py b/mclevel.py index ae4b544..793705a 100644 --- a/mclevel.py +++ b/mclevel.py @@ -2838,7 +2838,7 @@ class MCInfdevOldLevel(MCLevel): if player == "Player" and player in self.root_tag["Data"]: #single-player world playerTag = self.root_tag["Data"]["Player"]; - if "Dimension" not in playerTag: playerTag["Dimension"] = nbt.TAG_Byte(0); + if "Dimension" not in playerTag: playerTag["Dimension"] = nbt.TAG_Long(0); playerTag["Dimension"].value = d; else: @@ -2847,7 +2847,7 @@ class MCInfdevOldLevel(MCLevel): #multiplayer world, found this player playerTag = nbt.loadFile(playerFilePath) - if "Dimension" not in playerTag: playerTag["Dimension"] = nbt.TAG_Byte(0); + if "Dimension" not in playerTag: playerTag["Dimension"] = nbt.TAG_Long(0); playerTag["Dimension"].value = d; playerTag.saveGzipped(playerFilePath)