Skip to content

Commit

Permalink
Fix build after cherry-pick
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Feb 9, 2024
1 parent 7e4ca3e commit ab78bd8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private static WorldChunk readWorldChunkAttachments(WorldChunk chunk, ServerWorl
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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
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;

Expand Down Expand Up @@ -54,13 +55,13 @@ public boolean hasAttached(AttachmentType<?> type) {
}

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

0 comments on commit ab78bd8

Please sign in to comment.