Fix build after cherry-pick

This commit is contained in:
modmuss50 2024-02-09 15:12:10 +00:00
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

View file

@ -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;
}

View file

@ -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