mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-12 00:07:29 +00: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);
|
||||
|
||||
Reference in new issue
Block a user