diff options
| author | Foghrye4 <foghrye4@gmail.com> | 2017-05-24 20:13:22 +0300 |
|---|---|---|
| committer | Foghrye4 <foghrye4@gmail.com> | 2017-05-24 20:13:22 +0300 |
| commit | 8ed8c659da9496bf49fec94c049b0abae21746a8 (patch) | |
| tree | e8fd775699a2255c17a804b26b4a0a6f43d857a0 /ihl/processing/chemistry/DosingPumpGui.java | |
| parent | b67ac617dc9c5f43b911158a281c3c61ced5ea5a (diff) | |
fixing bugs with Iron workbench and fractionator
Diffstat (limited to 'ihl/processing/chemistry/DosingPumpGui.java')
| -rw-r--r-- | ihl/processing/chemistry/DosingPumpGui.java | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/ihl/processing/chemistry/DosingPumpGui.java b/ihl/processing/chemistry/DosingPumpGui.java index 090bdec..dde4f13 100644 --- a/ihl/processing/chemistry/DosingPumpGui.java +++ b/ihl/processing/chemistry/DosingPumpGui.java @@ -1,29 +1,27 @@ package ihl.processing.chemistry;
-import cpw.mods.fml.relauncher.Side;
-
-import cpw.mods.fml.relauncher.SideOnly;
-import ic2.core.IC2;
-import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.GuiTextField;
-import net.minecraft.client.gui.inventory.GuiContainer;
-import net.minecraft.util.ResourceLocation;
-import net.minecraft.util.StatCollector;
-
import java.awt.event.KeyEvent;
import org.lwjgl.opengl.GL11;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
import ihl.ClientProxy;
import ihl.IHLMod;
import ihl.utils.IHLRenderUtils;
import ihl.utils.IHLUtils;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.GuiTextField;
+import net.minecraft.client.gui.inventory.GuiContainer;
+import net.minecraft.util.ResourceLocation;
+import net.minecraft.util.StatCollector;
@SideOnly(Side.CLIENT)
public class DosingPumpGui extends GuiContainer {
private static final ResourceLocation background = new ResourceLocation("ihl", "textures/gui/GUIDosingPump.png");
private DosingPumpContainer container;
private GuiTextField setpointTextField;
+ private int lastFluidAmountSetpoint = -1;
private final static int TANK_HEIGHT = 58;
public DosingPumpGui(DosingPumpContainer container1) {
@@ -38,6 +36,10 @@ public class DosingPumpGui extends GuiContainer { @Override
protected void drawGuiContainerForegroundLayer(int par1, int par2) {
+ if(lastFluidAmountSetpoint!= this.container.tileEntity.fluidAmountSetpoint){
+ setpointTextField.setText(Integer.toString(this.container.tileEntity.fluidAmountSetpoint));
+ lastFluidAmountSetpoint= this.container.tileEntity.fluidAmountSetpoint;
+ }
int xOffset = (this.width - xSize) / 2;
int yOffset = (this.height - ySize) / 2;
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
