#1335: Add API for in-world structures
By: coll1234567 <joshl5324@gmail.com>
This commit is contained in:
@@ -114,3 +114,16 @@
|
||||
return nbttagcompound;
|
||||
}
|
||||
|
||||
@@ -545,6 +563,12 @@
|
||||
StructureStart structurestart = StructureStart.loadStaticStart(structurepieceserializationcontext, nbttagcompound1.getCompound(s), i);
|
||||
|
||||
if (structurestart != null) {
|
||||
+ // CraftBukkit start - load persistent data for structure start
|
||||
+ net.minecraft.nbt.NBTBase persistentBase = nbttagcompound1.getCompound(s).get("StructureBukkitValues");
|
||||
+ if (persistentBase instanceof NBTTagCompound) {
|
||||
+ structurestart.persistentDataContainer.putAll((NBTTagCompound) persistentBase);
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
map.put(structure, structurestart);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user