Fixed nbt writing crash
This commit is contained in:
parent
357cffc9cd
commit
604703ab28
1 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ public class TileEntityTank extends TileEntityFluidStorage implements IFluidHand
|
|||
public Packet getDescriptionPacket()
|
||||
{
|
||||
FluidStack stack = new FluidStack(FluidRegistry.WATER, 0);
|
||||
if (this.getTank().getFluid() != null)
|
||||
if (this.getTank().getFluid() != null && this.getTank().getFluid().getFluid() != null)
|
||||
{
|
||||
stack = this.getTank().getFluid();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue