Skip to content

Commit 92e1b9a

Browse files
committed
fix NPE from pauto recipe
1 parent 3572d1d commit 92e1b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/glodblock/github/coremod/CoreModHooks.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public static IItemHandler wrapItemHandler(ICapabilityProvider capProvider, Capa
172172

173173
public static IAEItemStack[] flattenFluidPackets(IAEItemStack[] stacks) {
174174
for (int i = 0; i < stacks.length; i++) {
175-
if (stacks[i].getItem() instanceof ItemFluidPacket) {
175+
if (stacks[i] != null && stacks[i].getItem() instanceof ItemFluidPacket) {
176176
stacks[i] = FakeFluids.packFluid2AEDrops((FluidStack) FakeItemRegister.getStack(stacks[i]));
177177
}
178178
}

0 commit comments

Comments
 (0)