mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 07:36:01 +00:00
Merge pull request #4524 from thommy101/issue-4522
Add missing null structure check.
This commit is contained in:
commit
8a7f5fb19c
1 file changed
+1
-1
@@ -151,7 +151,7 @@ public class TileEntityTurbineCasing extends TileEntityMultiblock<SynchronizedTu
|
||||
@Override
|
||||
public double getMaxEnergy()
|
||||
{
|
||||
return structure.getEnergyCapacity();
|
||||
return structure != null ? structure.getEnergyCapacity() : 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user