From ddf420bfabf8c535d4779dfc3e2a1b2db2c76de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E9=9B=A8=E8=90=BD?= Date: Wed, 15 Jan 2025 17:08:38 +0800 Subject: [PATCH] Fix mixin conflict (closes #1617). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 秋雨落 --- .../common/mixin/core/world/inventory/AnvilMenuMixin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/inventory/AnvilMenuMixin.java b/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/inventory/AnvilMenuMixin.java index b471a62da..acf149906 100644 --- a/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/inventory/AnvilMenuMixin.java +++ b/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/inventory/AnvilMenuMixin.java @@ -57,12 +57,12 @@ public abstract class AnvilMenuMixin extends ItemCombinerMixin implements AnvilM this.sendAllDataToRemote(); } - @ModifyConstant(method = "createResult", constant = @Constant(intValue = 40)) + @ModifyConstant(method = "createResult", constant = @Constant(intValue = 40), require = 0) private int arclight$maximumRepairCost(int i) { return i - 40 + maximumRepairCost; } - @ModifyConstant(method = "createResult", constant = @Constant(intValue = 39)) + @ModifyConstant(method = "createResult", constant = @Constant(intValue = 39), require = 0) private int arclight$maximumRepairCost2(int i) { return i - 40 + maximumRepairCost; }