Fix the pattern terminal's processing output / crafting result slots not being disabled when switching modes by putting back the old code that simply moves them offscreen.
This commit is contained in:
@@ -20,9 +20,7 @@ package appeng.client.gui.implementations;
|
||||
|
||||
|
||||
import appeng.api.config.ActionItems;
|
||||
import appeng.api.config.Settings;
|
||||
import appeng.client.gui.widgets.GuiActionButton;
|
||||
import appeng.client.gui.widgets.GuiSettingToggleButton;
|
||||
import appeng.client.gui.widgets.GuiTabButton;
|
||||
import appeng.container.implementations.ContainerPatternTerm;
|
||||
import appeng.container.slot.AppEngSlot;
|
||||
@@ -151,4 +149,5 @@ public class GuiPatternTerm extends GuiMEMonitorable<ContainerPatternTerm>
|
||||
|
||||
s.yPos = s.getY() + this.ySize - 78 - offsetPlayerSide;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -147,20 +147,20 @@ public class ContainerPatternTerm extends ContainerMEMonitorable implements IAEA
|
||||
{
|
||||
if( !this.isCraftingMode() )
|
||||
{
|
||||
// FIXME this.craftSlot.xPos = -9000;
|
||||
this.craftSlot.xPos = -9000;
|
||||
|
||||
for( int y = 0; y < 3; y++ )
|
||||
{
|
||||
// FIXME this.outputSlots[y].xPos = this.outputSlots[y].getX();
|
||||
this.outputSlots[y].xPos = this.outputSlots[y].getX();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// FIXME this.craftSlot.xPos = this.craftSlot.getX();
|
||||
this.craftSlot.xPos = this.craftSlot.getX();
|
||||
|
||||
for( int y = 0; y < 3; y++ )
|
||||
{
|
||||
// FIXME this.outputSlots[y].xPos = -9000;
|
||||
this.outputSlots[y].xPos = -9000;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ protected net.minecraft.inventory.container.Container field_75149_d # listeners
|
||||
protected net.minecraft.client.particle.RedstoneParticle <init>(Lnet/minecraft/world/World;DDDDDDLnet/minecraft/particles/RedstoneParticleData;Lnet/minecraft/client/particle/IAnimatedSprite;)V
|
||||
|
||||
# We need to change yPos of existing slots to resize the container
|
||||
public-f net.minecraft.inventory.container.Slot field_75223_e # xPos
|
||||
public-f net.minecraft.inventory.container.Slot field_75221_f # yPos
|
||||
|
||||
# For JEI registration
|
||||
|
||||
Reference in New Issue
Block a user