mirror of
https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial.git
synced 2026-10-25 20:22:23 +00:00
Order from cpu screen only active stack size (#1367)
Co-authored-by: Martin Robertz <dream-master@gmx.net>
This commit is contained in:
1 parent
9ece01a492
commit
684c3cc71f
1 file changed
+3
-1
@@ -105,6 +105,7 @@ public class GuiCraftingCPU extends AEBaseGui implements IGuiTooltipHandler {
|
||||
private int remainingOperations;
|
||||
private int hoveredVisibleIndex = -1;
|
||||
private IAEStack<?> hoveredStack;
|
||||
private long hoveredStackActiveSize;
|
||||
private List<NamedDimensionalCoord> hoveredInterfaceLocations;
|
||||
|
||||
public GuiCraftingCPU(final InventoryPlayer inventoryPlayer, final Object target) {
|
||||
@@ -209,7 +210,7 @@ public class GuiCraftingCPU extends AEBaseGui implements IGuiTooltipHandler {
|
||||
final PacketInventoryAction packet = new PacketInventoryAction(
|
||||
InventoryAction.AUTO_CRAFT,
|
||||
this.inventorySlots.inventorySlots.size(),
|
||||
this.hoveredStack.getStackSize());
|
||||
this.hoveredStackActiveSize);
|
||||
NetworkHandler.instance.sendToServer(packet);
|
||||
}
|
||||
|
||||
@@ -473,6 +474,7 @@ public class GuiCraftingCPU extends AEBaseGui implements IGuiTooltipHandler {
|
||||
y * SECTION_HEIGHT + ITEMSTACK_TOP_OFFSET + 10,
|
||||
tooltipMessage);
|
||||
this.hoveredStack = hoveredVisualStack;
|
||||
this.hoveredStackActiveSize = entry.getActiveAmount();
|
||||
}
|
||||
|
||||
GL11.glPushAttrib(GL11.GL_ENABLE_BIT | GL11.GL_COLOR_BUFFER_BIT | GL11.GL_LIGHTING_BIT);
|
||||
|
||||
Reference in new issue
Block a user