mirror of
https://github.com/GTNewHorizons/NotEnoughEnergistics.git
synced 2026-11-19 11:49:09 +00:00
Allow bigger stack sizes to be dragged into pattern terminals (#39)
* update bs+deps * allow bigger stack sizes to be dragged into pattern terminals
This commit is contained in:
1 parent
4a166fe069
commit
fcf9e34846
6 files changed
+31
-28
No files matched your search
@@ -204,14 +204,13 @@ public class GuiEventHandler implements INEIGuiHandler {
|
||||
if (button == 0) {
|
||||
boolean areStackEqual = slotStack != null && slotStack.isItemEqual(copyStack)
|
||||
&& ItemStack.areItemStackTagsEqual(slotStack, copyStack);
|
||||
copyStack.stackSize = areStackEqual ? Math.min(slotStack.stackSize + copySize, 127)
|
||||
: Math.min(copySize, 127);
|
||||
copyStack.stackSize = areStackEqual ? slotStack.stackSize + copySize : copySize;
|
||||
sendPacket = true;
|
||||
} else if (button == 1) {
|
||||
boolean areStackEqual = slotStack != null && slotStack.isItemEqual(copyStack)
|
||||
&& ItemStack.areItemStackTagsEqual(slotStack, copyStack);
|
||||
if (areStackEqual) {
|
||||
copyStack.stackSize = Math.min(slotStack.stackSize + 1, 127);
|
||||
copyStack.stackSize = slotStack.stackSize;
|
||||
} else {
|
||||
copyStack.stackSize = slotStack == null ? 1 : copySize;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user