Warehouse stock viewer doesn't display correctly
Marcel-a opened this issue ยท 0 comments
What I have in my warehouse:
Iron Ingot: 453
Gold Ingot: 59
Diamonds: 262
After a reconnect, the numbers are displayed correctly.
I debugged the plugin and found the issue. In TileWarehouseStockViewer.recountFilters(bool), BlockEvents are used to send the new values. But the blockEvent only can send byte, not int (see net.minecraft.network.play.server.SPacketBlockAction.writePacketData(PacketBuffer)). So the SPacketBlockAction only reads the first 8 bits of the ItemStack-count.