Archiviert
13
0

Fixed potential issue when converting worlds. Fixes BUKKIT-1307

Dieser Commit ist enthalten in:
EvilSeph 2012-03-29 08:25:59 -04:00
Ursprung cbab48a7bd
Commit e0c01154b0

Datei anzeigen

@ -18,7 +18,15 @@ public class OldChunkLoader {
oldchunk.h = nbttagcompound.getList("Entities"); oldchunk.h = nbttagcompound.getList("Entities");
oldchunk.i = nbttagcompound.getList("TileEntities"); oldchunk.i = nbttagcompound.getList("TileEntities");
oldchunk.j = nbttagcompound.getList("TileTicks"); oldchunk.j = nbttagcompound.getList("TileTicks");
oldchunk.a = nbttagcompound.getLong("LastUpdate");
// CraftBukkit start
try {
oldchunk.a = nbttagcompound.getLong("LastUpdate");
} catch (ClassCastException ex) {
oldchunk.a = nbttagcompound.getInt("LastUpdate");
}
// CraftBukkit end
return oldchunk; return oldchunk;
} }