mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-16 01:54:59 +00:00
Middle click craft ordering inserts a proper count (#329)
Co-authored-by: Kogepan229 <[email protected]>
This commit is contained in:
1 parent
80bcb3bdf3
commit
697217c5cd
6 files changed
+15
-18
No files matched your search
@@ -43,7 +43,7 @@ public class CPacketInventoryAction implements IMessage {
|
||||
|
||||
public CPacketInventoryAction() {}
|
||||
|
||||
public CPacketInventoryAction(final InventoryAction action, final int slot, final int id) {
|
||||
public CPacketInventoryAction(final InventoryAction action, final int slot, final long id) {
|
||||
this.action = action;
|
||||
this.slot = slot;
|
||||
this.id = id;
|
||||
@@ -51,7 +51,7 @@ public class CPacketInventoryAction implements IMessage {
|
||||
this.isEmpty = true;
|
||||
}
|
||||
|
||||
public CPacketInventoryAction(final InventoryAction action, final int slot, final int id, IAEItemStack stack) {
|
||||
public CPacketInventoryAction(final InventoryAction action, final int slot, final long id, IAEItemStack stack) {
|
||||
this.action = action;
|
||||
this.slot = slot;
|
||||
this.id = id;
|
||||
@@ -123,6 +123,9 @@ public class CPacketInventoryAction implements IMessage {
|
||||
if (baseContainer.getTargetStack() != null) {
|
||||
cca.getCraftingItem().putStack(baseContainer.getTargetStack().getItemStack());
|
||||
cca.setItemToCraft(baseContainer.getTargetStack());
|
||||
if (message.id > 0) {
|
||||
cca.setInitialCraftAmount(message.id);
|
||||
}
|
||||
}
|
||||
cca.detectAndSendChanges();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user