Dimension is a TAG_Int
This commit is contained in:
parent
dcfdb63846
commit
5eb076b0a1
@ -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)
|
||||
|
Reference in New Issue
Block a user