Merge pull request #1646 from Ivorforce/patch-1

Fix fluid tanks incorrectly reading NBT when empty
This commit is contained in:
LexManos 2015-01-22 21:09:59 -08:00
commit c9670d3c1d

View file

@ -37,11 +37,11 @@ public class FluidTank implements IFluidTank
if (!nbt.hasKey("Empty"))
{
FluidStack fluid = FluidStack.loadFluidStackFromNBT(nbt);
if (fluid != null)
{
setFluid(fluid);
}
setFluid(fluid);
}
else
{
setFluid(null);
}
return this;
}