Merge pull request #1646 from Ivorforce/patch-1
Fix fluid tanks incorrectly reading NBT when empty
This commit is contained in:
commit
c9670d3c1d
1 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue