Skip to content

Commit

Permalink
fix(patch): TileEntityInventory#isEmpty return true if null
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-kirby committed Feb 1, 2023
1 parent d170e79 commit db8826f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit db8826f

Please sign in to comment.