mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-14 01:04:12 +00:00
Fix possible reservoir crash from thermionic fabricator
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user