From 5eb076b0a10c1ea0a0292837e53386da4a903e5c Mon Sep 17 00:00:00 2001 From: David Vierra Date: Sun, 20 Mar 2011 16:53:53 -1000 Subject: [PATCH] Dimension is a TAG_Int --- mclevel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mclevel.py b/mclevel.py index 6dc610f..e98dd63 100644 --- a/mclevel.py +++ b/mclevel.py @@ -3882,7 +3882,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_Long(0); + if "Dimension" not in playerTag: playerTag["Dimension"] = nbt.TAG_Int(0); playerTag["Dimension"].value = d; else: @@ -3891,7 +3891,7 @@ class MCInfdevOldLevel(MCLevel): #multiplayer world, found this player playerTag = nbt.loadFile(playerFilePath) - if "Dimension" not in playerTag: playerTag["Dimension"] = nbt.TAG_Long(0); + if "Dimension" not in playerTag: playerTag["Dimension"] = nbt.TAG_Int(0); playerTag["Dimension"].value = d; playerTag.saveGzipped(playerFilePath)