mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
Wrap NBTOps in RegistryOps (#7892)
This commit is contained in:
@@ -3532,7 +3532,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+
|
+
|
||||||
+ // Paper start - async chunk io
|
+ // Paper start - async chunk io
|
||||||
+ public void loadInData(ChunkPos chunkPos, CompoundTag compound) {
|
+ public void loadInData(ChunkPos chunkPos, CompoundTag compound) {
|
||||||
+ this.readColumn(chunkPos, NbtOps.INSTANCE, compound);
|
+ this.readColumn(chunkPos, RegistryOps.create(NbtOps.INSTANCE, this.registryAccess), compound);
|
||||||
}
|
}
|
||||||
+ // Paper end - aync chnnk i
|
+ // Paper end - aync chnnk i
|
||||||
|
|
||||||
@@ -3552,8 +3552,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
}
|
}
|
||||||
|
|
||||||
+ // Paper start - internal get data function, copied from above
|
+ // Paper start - internal get data function, copied from above
|
||||||
+ private CompoundTag getDataInternal(ChunkPos chunkcoordintpair) {
|
+ private CompoundTag getDataInternal(ChunkPos pos) {
|
||||||
+ Dynamic<Tag> dynamic = this.writeColumn(chunkcoordintpair, NbtOps.INSTANCE);
|
+ RegistryOps<Tag> registryOps = RegistryOps.create(NbtOps.INSTANCE, this.registryAccess);
|
||||||
|
+ Dynamic<Tag> dynamic = this.writeColumn(pos, registryOps);
|
||||||
+ Tag nbtbase = (Tag) dynamic.getValue();
|
+ Tag nbtbase = (Tag) dynamic.getValue();
|
||||||
+
|
+
|
||||||
+ if (nbtbase instanceof CompoundTag) {
|
+ if (nbtbase instanceof CompoundTag) {
|
||||||
|
Reference in New Issue
Block a user