Fix NPE with FCStackStringifyHandler (#129)

This commit is contained in:
miozune authored and GitHub committed 2023-05-13 19:03:22 +02:00
1 parent 2cd049d40e
commit 14853a2481
3 files changed
+12

No files matched your search

@@ -25,6 +25,7 @@ public class FCStackStringifyHandler implements IStackStringifyHandler {
public FluidStack getFluid(ItemStack item) {
if (item.getItem() instanceof ItemFluidDrop) {
FluidStack fluid = ItemFluidDrop.getFluidStack(item);
if (fluid == null) return null;
fluid.amount /= Math.max(item.stackSize, 1);
return fluid;
} else if (item.getItem() instanceof ItemFluidPacket) {