Skip to content

Commit

Permalink
Add null check to writeFullContainerName too
Browse files Browse the repository at this point in the history
  • Loading branch information
Alemiz112 committed Sep 16, 2024
1 parent a1c841c commit 947e50f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public void readItemUse(ByteBuf buffer, InventoryTransactionPacket packet) {
@Override
public void writeFullContainerName(ByteBuf buffer, FullContainerName containerName) {
this.writeContainerSlotType(buffer, containerName.getContainer());
buffer.writeIntLE(containerName.getDynamicId());
buffer.writeIntLE(containerName.getDynamicId() == null ? 0 : containerName.getDynamicId());
}

@Override
Expand Down

0 comments on commit 947e50f

Please sign in to comment.