Skip to content

Commit

Permalink
Merge pull request #3641 from Matyrobbrt/develop
Browse files Browse the repository at this point in the history
Fix stacks having superfluous NBT and fluids in the pattern grid
  • Loading branch information
raoulvdberge authored Mar 5, 2024
2 parents f5f98bb + dc277e2 commit cae8f65
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed
- Fixed items in disks deserializing with an empty NBT tag.
- Fixed placing fluids in the pattern grid disconnecting the client.

## [1.13.0-beta.2] - 2024-02-16

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void register(IPayloadRegistrar registrar) {
registrar.play(
FluidFilterSlotUpdateMessage.ID,
FluidFilterSlotUpdateMessage::decode,
handler -> handler.server(FluidFilterSlotUpdateMessage::handle)
handler -> handler.client(FluidFilterSlotUpdateMessage::handle)
);
registrar.play(
BlockEntitySynchronizationParameterMessage.ID,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public static ItemStack deserializeStackFromNbt(CompoundTag tag) {
return AttachmentInternals.reconstructItemStack(
BuiltInRegistries.ITEM.get(new ResourceLocation(tag.getString(NBT_ITEM_ID))),
tag.getInt(NBT_ITEM_QUANTITY),
tag.getCompound(NBT_ITEM_NBT)
tag.contains(NBT_ITEM_NBT) ? tag.getCompound(NBT_ITEM_NBT) : null
);
}
}

0 comments on commit cae8f65

Please sign in to comment.