Fix doubling fluids for real now (#153)

If condition was inverted
This commit is contained in:
firenoo authored and GitHub committed 2023-08-07 23:50:39 +02:00
1 parent 1ed32d46dc
commit 98ff754306
1 file changed
+1 -1
@@ -91,7 +91,7 @@ public class ItemFluidPacket extends FCBaseItem {
public static void setFluidAmount(ItemStack stack, int amount) {
if (stack == null || !stack.hasTagCompound()
|| stack.getTagCompound().hasKey("FluidStack", Constants.NBT.TAG_COMPOUND)) {
|| !stack.getTagCompound().hasKey("FluidStack", Constants.NBT.TAG_COMPOUND)) {
return;
}
stack.getTagCompound().getCompoundTag("FluidStack").setInteger("Amount", amount);