mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-12-22 15:39:22 +01:00
fixed a kick when requesting an empty item
This commit is contained in:
parent
8d1bd8f943
commit
1d05d1c906
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue