Fix possible reservoir crash from thermionic fabricator

This commit is contained in:
mezz committed 2015-01-18 14:21:21 -08:00
1 parent bdd386c431
commit 195c8fc524
1 file changed
+1 -1
@@ -28,7 +28,7 @@ public class ReservoirWidget extends TankWidget {
public void draw(int startX, int startY) {
FluidStack contents = getTank().getFluid();
if(contents == null || contents.amount <= 0)
if(contents == null || contents.amount <= 0 || contents.getFluid() == null)
return;
IIcon liquidIcon = contents.getFluid().getIcon(contents);
if(liquidIcon == null)