Quickly prevent NPEs in machines with empty tanks

This commit is contained in:
Ben Spiers 2014-06-15 16:28:16 +01:00
parent 982c7427f3
commit ac6ee8514f

View file

@ -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;
}