Fixed potential issue when converting worlds. Fixes BUKKIT-1307

This commit is contained in:
EvilSeph 2012-03-29 08:25:59 -04:00
parent cbab48a7bd
commit e0c01154b0

View file

@ -18,7 +18,15 @@ public class OldChunkLoader {
oldchunk.h = nbttagcompound.getList("Entities");
oldchunk.i = nbttagcompound.getList("TileEntities");
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;
}