Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Fixed potential issue when converting worlds. Fixes BUKKIT-1307
Dieser Commit ist enthalten in:
Ursprung
cbab48a7bd
Commit
e0c01154b0
@ -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");
|
||||||
|
|
||||||
|
// CraftBukkit start
|
||||||
|
try {
|
||||||
oldchunk.a = nbttagcompound.getLong("LastUpdate");
|
oldchunk.a = nbttagcompound.getLong("LastUpdate");
|
||||||
|
} catch (ClassCastException ex) {
|
||||||
|
oldchunk.a = nbttagcompound.getInt("LastUpdate");
|
||||||
|
}
|
||||||
|
// CraftBukkit end
|
||||||
|
|
||||||
return oldchunk;
|
return oldchunk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren