mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-23 05:19:49 +00:00
Fix NPE with FCStackStringifyHandler (#129)
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user