1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-03-13 11:18:23 +01:00

SPIGOT-4916: Fix loading legacy structure data

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2019-05-12 21:53:54 +10:00
parent 41043ef48b
commit 962fa8e8a6

View file

@ -1,6 +1,6 @@
--- a/net/minecraft/server/IChunkLoader.java --- a/net/minecraft/server/IChunkLoader.java
+++ b/net/minecraft/server/IChunkLoader.java +++ b/net/minecraft/server/IChunkLoader.java
@@ -17,10 +17,51 @@ @@ -17,15 +17,56 @@
this.b = datafixer; this.b = datafixer;
} }
@ -53,3 +53,9 @@
if (i < 1493) { if (i < 1493) {
nbttagcompound = GameProfileSerializer.a(this.b, DataFixTypes.CHUNK, nbttagcompound, i, 1493); nbttagcompound = GameProfileSerializer.a(this.b, DataFixTypes.CHUNK, nbttagcompound, i, 1493);
if (nbttagcompound.getCompound("Level").getBoolean("hasLegacyStructureData")) { if (nbttagcompound.getCompound("Level").getBoolean("hasLegacyStructureData")) {
if (this.a == null) {
- this.a = PersistentStructureLegacy.a(dimensionmanager, (WorldPersistentData) supplier.get());
+ this.a = PersistentStructureLegacy.a(dimensionmanager.getType(), (WorldPersistentData) supplier.get()); // CraftBukkit - getType
}
nbttagcompound = this.a.a(nbttagcompound);