fixed a kick when requesting an empty item

This commit is contained in:
Ell 2024-12-03 23:32:36 +01:00
parent 8d1bd8f943
commit 1d05d1c906

View file

@ -92,6 +92,8 @@ public class ItemTerminalGui extends AbstractContainerScreen<ItemTerminalContain
if (!widget.isPresent())
return;
var stack = widget.get().stack.copy();
if (stack.isEmpty())
return;
stack.setCount(1);
PacketDistributor.sendToServer(new PacketRequest(this.menu.tile.getBlockPos(), stack, this.requestAmount));
this.requestAmount = 1;