mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2025-01-10 07:07:42 +01:00
parent
c72d1cc09c
commit
8894d1d8c4
1 changed files with 8 additions and 7 deletions
|
@ -65,10 +65,10 @@ public class CraftingTerminalContainer extends ItemTerminalContainer {
|
||||||
@Override
|
@Override
|
||||||
public void clicked(int slotId, int dragType, ClickType clickTypeIn, Player player) {
|
public void clicked(int slotId, int dragType, ClickType clickTypeIn, Player player) {
|
||||||
if (slotId > 0) {
|
if (slotId > 0) {
|
||||||
var ghostItems = this.getTile().ghostItems;
|
|
||||||
if (clickTypeIn == ClickType.PICKUP) {
|
|
||||||
var slot = this.slots.get(slotId);
|
var slot = this.slots.get(slotId);
|
||||||
if (slot.container == this.craftInventory && !slot.hasItem())
|
var ghostItems = this.getTile().ghostItems;
|
||||||
|
if (slot.container == this.craftInventory && !slot.hasItem()) {
|
||||||
|
if (clickTypeIn == ClickType.PICKUP) {
|
||||||
ghostItems.setStackInSlot(slot.getSlotIndex(), ItemStack.EMPTY);
|
ghostItems.setStackInSlot(slot.getSlotIndex(), ItemStack.EMPTY);
|
||||||
} else if (clickTypeIn == ClickType.QUICK_MOVE) {
|
} else if (clickTypeIn == ClickType.QUICK_MOVE) {
|
||||||
// clear the entire grid when holding shift
|
// clear the entire grid when holding shift
|
||||||
|
@ -76,6 +76,7 @@ public class CraftingTerminalContainer extends ItemTerminalContainer {
|
||||||
ghostItems.setStackInSlot(i, ItemStack.EMPTY);
|
ghostItems.setStackInSlot(i, ItemStack.EMPTY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
super.clicked(slotId, dragType, clickTypeIn, player);
|
super.clicked(slotId, dragType, clickTypeIn, player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue