diff --git a/src/main/java/com/direwolf20/laserio/common/network/handler/PacketOpenFilter.java b/src/main/java/com/direwolf20/laserio/common/network/handler/PacketOpenFilter.java index 3a24bd78..53ada5d3 100644 --- a/src/main/java/com/direwolf20/laserio/common/network/handler/PacketOpenFilter.java +++ b/src/main/java/com/direwolf20/laserio/common/network/handler/PacketOpenFilter.java @@ -90,6 +90,7 @@ public AbstractContainerMenu createMenu(int windowId, Inventory playerInventory, }; sender.openMenu(containerProvider, (buf -> { ItemStack.OPTIONAL_STREAM_CODEC.encode(buf, filterItem); + ItemStack.OPTIONAL_STREAM_CODEC.encode(buf, ItemStack.EMPTY); })); } if (filterItem.getItem() instanceof FilterNBT) { @@ -111,6 +112,7 @@ public AbstractContainerMenu createMenu(int windowId, Inventory playerInventory, }; sender.openMenu(containerProvider, (buf -> { ItemStack.OPTIONAL_STREAM_CODEC.encode(buf, filterItem); + ItemStack.OPTIONAL_STREAM_CODEC.encode(buf, ItemStack.EMPTY); })); } }