Skip to content

Commit

Permalink
Merge pull request retrooper#955 from booky10/fix/item-adventure-pred…
Browse files Browse the repository at this point in the history
…icate-component-reading

Read item adventure predicate nbt and property matchers as optionals
  • Loading branch information
retrooper authored Aug 20, 2024
2 parents 45c0c58 + 015e7a4 commit 453793e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ public BlockPredicate(
public static BlockPredicate read(PacketWrapper<?> wrapper) {
MappedEntitySet<StateType.Mapped> blocks = wrapper.readOptional(
ew -> MappedEntitySet.read(ew, StateTypes::getMappedById));
List<PropertyMatcher> properties = wrapper.readList(PropertyMatcher::read);
NBTCompound nbt = wrapper.readNBT();
List<PropertyMatcher> properties = wrapper.readOptional(
ew -> wrapper.readList(PropertyMatcher::read));
NBTCompound nbt = wrapper.readOptional(PacketWrapper::readNBT);
return new BlockPredicate(blocks, properties, nbt);
}

Expand Down

0 comments on commit 453793e

Please sign in to comment.