Skip to content

Commit

Permalink
fix mixin crashing the game on neoforge
Browse files Browse the repository at this point in the history
it still doesn't work but only affects creative mode so 🤷
  • Loading branch information
UpcraftLP committed Feb 2, 2024
1 parent bdb2de8 commit 935a336
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
public interface EquipableMixin {

@WrapOperation(method = "swapWithEquipmentSlot", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/item/enchantment/EnchantmentHelper;hasBindingCurse(Lnet/minecraft/world/item/ItemStack;)Z"))
default boolean camsbackpacks$hasBindingCurse(ItemStack stack, Operation<Boolean> original) {
private boolean camsbackpacks$hasBindingCurse(ItemStack stack, Operation<Boolean> original) {
return stack.getItem() instanceof BackpackItem || original.call(stack);
}
}

0 comments on commit 935a336

Please sign in to comment.