Skip to content

Commit

Permalink
Do what this todo says and update the FuelGauge when opening smeltery…
Browse files Browse the repository at this point in the history
… gui. Seems to work quite well?
  • Loading branch information
bonii-xx committed Aug 24, 2014
1 parent 9070c73 commit 98d5491
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/main/java/tconstruct/smeltery/gui/SmelteryGui.java
Expand Up @@ -46,6 +46,14 @@ public SmelteryGui(InventoryPlayer inventoryplayer, SmelteryLogic smeltery, Worl
smeltery.updateFuelDisplay();
}

@Override
public void initGui() {
super.initGui();

if(logic != null)
logic.updateFuelGague();
}

@Override
public void drawScreen (int mouseX, int mouseY, float par3)
{
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java
Expand Up @@ -564,7 +564,7 @@ public void updateFuelDisplay ()

}

void updateFuelGague () // TODO: Call this method when the GUI is opened
public void updateFuelGague ()
{
if (activeLavaTank == null || useTime > 0)
return;
Expand Down

0 comments on commit 98d5491

Please sign in to comment.