mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-11 15:57:55 +00:00
fix oversight in nbt load
This commit is contained in:
1 parent
72270a3f64
commit
b9d82c5da5
1 file changed
+5
-4
@@ -221,14 +221,15 @@ public class FluidCellInventory implements IFluidCellInventory {
|
||||
for( int x = 0; x < types; x++ )
|
||||
{
|
||||
final FluidStack t = FluidStack.loadFluidStackFromNBT( this.tagCompound.getCompoundTag( fluidSlots[x] ) );
|
||||
final AEFluidStack aet = AEFluidStack.create( t );
|
||||
|
||||
if( t != null )
|
||||
if( aet != null )
|
||||
{
|
||||
t.amount = this.tagCompound.getInteger( fluidSlotCount[x] );
|
||||
aet.setStackSize( this.tagCompound.getLong( fluidSlotCount[x] ) );
|
||||
|
||||
if( t.amount > 0 )
|
||||
if( aet.getStackSize() > 0 )
|
||||
{
|
||||
this.cellItems.add( AEFluidStack.create( t ) );
|
||||
this.cellItems.add( aet );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user