Quickly prevent NPEs in machines with empty tanks
This commit is contained in:
parent
982c7427f3
commit
ac6ee8514f
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ public abstract class GuiGauge<T> extends GuiElement
|
|||
|
||||
public void renderScale(int xAxis, int yAxis, int guiWidth, int guiHeight)
|
||||
{
|
||||
if(getIcon() == null || getScaledLevel() == 0)
|
||||
if(getScaledLevel() == 0 || getIcon() == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue