From db8826fab36b48235348c2546fac49b25577a371 Mon Sep 17 00:00:00 2001 From: Sam Kirby Date: Wed, 1 Feb 2023 16:40:12 +0000 Subject: [PATCH] fix(patch): TileEntityInventory#isEmpty return true if null --- .../sevpatches/core/patches/PatchGalacticraftInventories.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/tv/darkosto/sevpatches/core/patches/PatchGalacticraftInventories.java b/src/main/java/tv/darkosto/sevpatches/core/patches/PatchGalacticraftInventories.java index 1ba5643..323b053 100644 --- a/src/main/java/tv/darkosto/sevpatches/core/patches/PatchGalacticraftInventories.java +++ b/src/main/java/tv/darkosto/sevpatches/core/patches/PatchGalacticraftInventories.java @@ -42,7 +42,7 @@ protected boolean patch() { )); insnList.add(new InsnNode(Opcodes.ACONST_NULL)); insnList.add(new JumpInsnNode(Opcodes.IF_ACMPNE, afterNull)); - insnList.add(new InsnNode(Opcodes.ICONST_0)); + insnList.add(new InsnNode(Opcodes.ICONST_1)); insnList.add(new InsnNode(Opcodes.IRETURN)); insnList.add(new FrameNode(Opcodes.F_SAME, 0, null, 0, null)); insnList.add(afterNull);