Skip to content

Commit

Permalink
actually use prev in canApply
Browse files Browse the repository at this point in the history
  • Loading branch information
yrsegal committed Jul 13, 2023
1 parent 2baf495 commit 9c980d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/vazkii/quark/mixin/EnchantmentMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ private boolean canApply(boolean prev, ItemStack stack) {
@ModifyReturnValue(method = "canApplyAtEnchantingTable", at = @At("RETURN"), remap = false)
private boolean canApplyAtEnchantingTable(boolean prev, ItemStack stack) {
Enchantment self = (Enchantment) (Object) this;
return !EnchantmentsBegoneModule.shouldBegone(self);
return prev && !EnchantmentsBegoneModule.shouldBegone(self);
}

private static boolean canPiercingApply(Enchantment enchantment, ItemStack stack) {
Expand Down

0 comments on commit 9c980d1

Please sign in to comment.