Fixed #428 - TileGenerator not calling super.invalidate()
This commit is contained in:
parent
f05e01cac1
commit
f0191022d7
4 changed files with 5 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
package resonantinduction.mechanical.fluid.pipe;
|
package resonantinduction.archaic.fluid.tank;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -15,7 +15,6 @@ import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
import net.minecraftforge.fluids.FluidStack;
|
import net.minecraftforge.fluids.FluidStack;
|
||||||
import resonantinduction.archaic.Archaic;
|
import resonantinduction.archaic.Archaic;
|
||||||
import resonantinduction.archaic.fluid.tank.TileTank;
|
|
||||||
import resonantinduction.core.fluid.TileFluidDistribution;
|
import resonantinduction.core.fluid.TileFluidDistribution;
|
||||||
import universalelectricity.api.energy.UnitDisplay;
|
import universalelectricity.api.energy.UnitDisplay;
|
||||||
import universalelectricity.api.energy.UnitDisplay.Unit;
|
import universalelectricity.api.energy.UnitDisplay.Unit;
|
|
@ -9,7 +9,6 @@ import net.minecraftforge.fluids.FluidContainerRegistry;
|
||||||
import resonantinduction.core.fluid.FluidDistributionetwork;
|
import resonantinduction.core.fluid.FluidDistributionetwork;
|
||||||
import resonantinduction.core.fluid.IFluidDistribution;
|
import resonantinduction.core.fluid.IFluidDistribution;
|
||||||
import resonantinduction.core.fluid.TileFluidDistribution;
|
import resonantinduction.core.fluid.TileFluidDistribution;
|
||||||
import resonantinduction.mechanical.fluid.pipe.ItemBlockFluidContainer;
|
|
||||||
import universalelectricity.api.UniversalElectricity;
|
import universalelectricity.api.UniversalElectricity;
|
||||||
import universalelectricity.api.vector.Vector3;
|
import universalelectricity.api.vector.Vector3;
|
||||||
import calclavia.lib.content.module.TileBlock.IComparatorInputOverride;
|
import calclavia.lib.content.module.TileBlock.IComparatorInputOverride;
|
||||||
|
|
|
@ -45,6 +45,7 @@ public class TileGenerator extends TileElectrical implements IRotatable, INodePr
|
||||||
@Override
|
@Override
|
||||||
public void initiate()
|
public void initiate()
|
||||||
{
|
{
|
||||||
|
super.initiate();
|
||||||
node.reconstruct();
|
node.reconstruct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,6 +53,7 @@ public class TileGenerator extends TileElectrical implements IRotatable, INodePr
|
||||||
public void invalidate()
|
public void invalidate()
|
||||||
{
|
{
|
||||||
node.deconstruct();
|
node.deconstruct();
|
||||||
|
super.invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -86,13 +86,14 @@ public class GuiMultimeter extends GuiContainerBase
|
||||||
@Override
|
@Override
|
||||||
protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY)
|
protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY)
|
||||||
{
|
{
|
||||||
|
String graphName = multimeter.getNetwork().getLocalized(multimeter.getNetwork().graphs.get(multimeter.graphType));
|
||||||
super.drawGuiContainerForegroundLayer(mouseX, mouseY);
|
super.drawGuiContainerForegroundLayer(mouseX, mouseY);
|
||||||
String s = LanguageUtility.getLocal("item.resonantinduction:multimeter.name");
|
String s = LanguageUtility.getLocal("item.resonantinduction:multimeter.name");
|
||||||
this.fontRenderer.drawString(s, this.xSize / 2 - this.fontRenderer.getStringWidth(s) / 2, 6, 4210752);
|
this.fontRenderer.drawString(s, this.xSize / 2 - this.fontRenderer.getStringWidth(s) / 2, 6, 4210752);
|
||||||
this.fontRenderer.drawString(EnumColor.INDIGO + "Detection Type", 9, 20, 4210752);
|
this.fontRenderer.drawString(EnumColor.INDIGO + "Detection Type", 9, 20, 4210752);
|
||||||
this.fontRenderer.drawString(multimeter.getNetwork().getDisplay(multimeter.detectType), 9, 60, 4210752);
|
this.fontRenderer.drawString(multimeter.getNetwork().getDisplay(multimeter.detectType), 9, 60, 4210752);
|
||||||
this.fontRenderer.drawString("Logic: " + EnumColor.RED + LanguageUtility.getLocal("gui.resonantinduction.multimeter." + this.multimeter.getMode().display), 9, 75, 4210752);
|
this.fontRenderer.drawString("Logic: " + EnumColor.RED + LanguageUtility.getLocal("gui.resonantinduction.multimeter." + this.multimeter.getMode().display), 9, 75, 4210752);
|
||||||
this.fontRenderer.drawString(multimeter.getNetwork().getLocalized(multimeter.getNetwork().graphs.get(multimeter.graphType)), 95, 115, 4210752);
|
this.fontRenderer.drawString(graphName, 95, 115, 4210752);
|
||||||
this.textFieldLimit.drawTextBox();
|
this.textFieldLimit.drawTextBox();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue