mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Do what this todo says and update the FuelGauge when opening smeltery gui. Seems to work quite well?
This commit is contained in:
1 parent
9070c73466
commit
98d54916cc
2 files changed
+9
-1
No files matched your search
@@ -46,6 +46,14 @@ public class SmelteryGui extends NewContainerGui
|
||||
smeltery.updateFuelDisplay();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initGui() {
|
||||
super.initGui();
|
||||
|
||||
if(logic != null)
|
||||
logic.updateFuelGague();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawScreen (int mouseX, int mouseY, float par3)
|
||||
{
|
||||
|
||||
@@ -564,7 +564,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
|
||||
}
|
||||
|
||||
void updateFuelGague () // TODO: Call this method when the GUI is opened
|
||||
public void updateFuelGague ()
|
||||
{
|
||||
if (activeLavaTank == null || useTime > 0)
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user