mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-21 11:20:55 -04:00
Fix build after cherry-pick
This commit is contained in:
parent
7e4ca3e18b
commit
ab78bd8247
2 changed files with 6 additions and 5 deletions
fabric-data-attachment-api-v1/src/main/java/net/fabricmc/fabric/mixin/attachment
|
@ -55,7 +55,7 @@ abstract class ChunkSerializerMixin {
|
|||
method = "deserialize"
|
||||
)
|
||||
private static ProtoChunk readProtoChunkAttachments(ProtoChunk chunk, ServerWorld world, PointOfInterestStorage poiStorage, ChunkPos chunkPos, NbtCompound nbt) {
|
||||
((AttachmentTargetImpl) chunk).fabric_readAttachmentsFromNbt(nbt);
|
||||
((AttachmentTargetImpl) chunk).fabric_readAttachmentsFromNbt(nbt, world.getRegistryManager());
|
||||
return chunk;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ import org.spongepowered.asm.mixin.Mixin;
|
|||
import org.spongepowered.asm.mixin.Shadow;
|
||||
|
||||
import net.minecraft.nbt.NbtCompound;
|
||||
import net.minecraft.registry.RegistryWrapper;
|
||||
import net.minecraft.world.chunk.WorldChunk;
|
||||
import net.minecraft.world.chunk.WrapperProtoChunk;
|
||||
|
||||
|
@ -54,13 +55,13 @@ public class WrapperProtoChunkMixin implements AttachmentTargetImpl {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void fabric_writeAttachmentsToNbt(NbtCompound nbt) {
|
||||
((AttachmentTargetImpl) this.wrapped).fabric_writeAttachmentsToNbt(nbt);
|
||||
public void fabric_writeAttachmentsToNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup wrapperLookup) {
|
||||
((AttachmentTargetImpl) this.wrapped).fabric_writeAttachmentsToNbt(nbt, wrapperLookup);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fabric_readAttachmentsFromNbt(NbtCompound nbt) {
|
||||
((AttachmentTargetImpl) this.wrapped).fabric_readAttachmentsFromNbt(nbt);
|
||||
public void fabric_readAttachmentsFromNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup wrapperLookup) {
|
||||
((AttachmentTargetImpl) this.wrapped).fabric_readAttachmentsFromNbt(nbt, wrapperLookup);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue