mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 07:36:01 +00:00
Fixed turbine crash
This commit is contained in:
1 parent
5fa3308565
commit
9005e589e0
1 file changed
+6
-1
@@ -353,9 +353,14 @@ public class TileEntityTurbineValve extends TileEntityTurbineCasing implements I
|
||||
@Override
|
||||
public int fill(ForgeDirection from, FluidStack resource, boolean doFill)
|
||||
{
|
||||
if(structure == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int filled = fluidTank.fill(resource, doFill);
|
||||
|
||||
if(structure != null && doFill)
|
||||
if(doFill)
|
||||
{
|
||||
structure.newSteamInput += filled;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user