Skip to content

Commit

Permalink
fix anvils still breaking and not consuming XP
Browse files Browse the repository at this point in the history
  • Loading branch information
UpcraftLP committed Apr 9, 2024
1 parent 03e843e commit 02130f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public class MixinAnvilMenu {
return AnvilFixConfig.getGlobalEnchantmentLevelLimit(original);
}

@ModifyExpressionValue(method = "onTake", at = @At(value = "FIELD", target = "Lnet/minecraft/world/entity/player/Abilities;instabuild:Z"))
private boolean anvilfix$stopAnvilBreaking(boolean original) {
@ModifyExpressionValue(method = "lambda$onTake$2", at = @At(value = "FIELD", target = "Lnet/minecraft/world/entity/player/Abilities;instabuild:Z"))
private static boolean anvilfix$stopAnvilBreaking(boolean original) {
return original || AnvilFixConfig.stopAnvilBreakingOnCraft;
}
}

0 comments on commit 02130f3

Please sign in to comment.