From b126b54882406e90fd6fcfb5feaf62b5052f766b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=98=BF=E9=B9=B0?= Date: Sun, 26 Oct 2025 12:43:27 +0800 Subject: [PATCH 1/2] =?UTF-8?q?refactor(listener):=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=89=A9=E5=93=81=E4=BA=A4=E4=BA=92=E7=9B=91=E5=90=AC=E5=99=A8?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除无关检测 --- .../menu/module/internal/listener/ListenerItemInteract.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugin/src/main/kotlin/trplugins/menu/module/internal/listener/ListenerItemInteract.kt b/plugin/src/main/kotlin/trplugins/menu/module/internal/listener/ListenerItemInteract.kt index 3c429fe3..7a3a4829 100644 --- a/plugin/src/main/kotlin/trplugins/menu/module/internal/listener/ListenerItemInteract.kt +++ b/plugin/src/main/kotlin/trplugins/menu/module/internal/listener/ListenerItemInteract.kt @@ -6,6 +6,7 @@ import org.bukkit.inventory.EquipmentSlot import org.bukkit.inventory.Inventory import taboolib.common.platform.event.EventPriority import taboolib.common.platform.event.SubscribeEvent +import taboolib.common.platform.function.info import taboolib.common5.Baffle import taboolib.module.nms.MinecraftVersion.versionId import taboolib.module.nms.nmsProxy @@ -36,10 +37,6 @@ object ListenerItemInteract { val item = e.item ?: return val session = MenuSession.getSession(player) - if (!InventoryNMS.instance.checkInventory(player.openInventory.topInventory) - || !InventoryNMS.instance.checkInventory(player.inventory) - ) return - if (player.openInventory.topInventory.holder != (player.inventory as Inventory).holder || session.menu != null) return if (interactCooldown.value.hasNext(player.name)) { val menu = Menu.menus.find { it -> it.settings.boundItems.any { it.itemMatches(item, true) } } From 6ee54834d84eeaccc0b57946960bffe77ddd8e0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=98=BF=E9=B9=B0?= Date: Sun, 26 Oct 2025 12:44:04 +0800 Subject: [PATCH 2/2] Update gradle.properties --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index a5afe302..8911322c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ group=me.arasple.mc.trmenu -version=3.8.6 \ No newline at end of file +version=3.8.7 \ No newline at end of file