Compare commits

..
Author SHA1 Message Date
UltraProdigy c147af2d1d ci: run build and test on release branches 2026-11-09 02:21:26 -05:00
@@ -91,11 +91,16 @@ public class ItemCertusQuartzTank extends BaseItemBlockContainer implements IFlu
if (!container.stackTagCompound.hasKey("tileEntity")
|| container.stackTagCompound.getCompoundTag("tileEntity").hasKey("Empty")) {
int finalAmount = Math.min(resource.amount, this.capacity);
NBTTagCompound fluidTag = new FluidStack(resource.getFluid(), finalAmount, resource.tag)
.writeToNBT(new NBTTagCompound());
NBTTagCompound fluidTag = resource.writeToNBT(new NBTTagCompound());
if (this.capacity < resource.amount) {
fluidTag.setInteger("Amount", this.capacity);
container.stackTagCompound.setTag("tileEntity", fluidTag);
return this.capacity;
}
container.stackTagCompound.setTag("tileEntity", fluidTag);
return finalAmount;
return resource.amount;
}
NBTTagCompound fluidTag = container.stackTagCompound.getCompoundTag("tileEntity");