mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 04:02:50 +01:00
Fixed potential issue when converting worlds. Fixes BUKKIT-1307
This commit is contained in:
parent
cbab48a7bd
commit
e0c01154b0
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue