mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-20 20:12:30 +00:00
Quickly prevent NPEs in machines with empty tanks
This commit is contained in:
1 parent
982c7427f3
commit
ac6ee8514f
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user