Fixes #723 and wrench works with ic2 machines now

This commit is contained in:
modmuss50 2016-09-06 22:16:21 +01:00
parent d96149fc97
commit d5ff2a42bb
6 changed files with 39 additions and 22 deletions

View file

@ -156,7 +156,7 @@ public class TileSemifluidGenerator extends TilePowerAcceptor implements IWrench
if (!worldObj.isRemote)
FluidUtils.drainContainers(this, inventory, 0, 1);
if (tank.getFluidAmount() > 0 && getMaxPower() - getEnergy() >= euTick)
if (tank.getFluidAmount() > 0 && getMaxPower() - getEnergy() >= euTick && tank.getFluidType() != null && fluids.containsKey(tank.getFluidType().getName()))
{
Integer euPerBucket = fluids.get(tank.getFluidType().getName());
// float totalTicks = (float)euPerBucket / 8f; //x eu per bucket / 8