File tree Expand file tree Collapse file tree
plugin/src/main/kotlin/trplugins/menu/module/internal/listener Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11group =me.arasple.mc.trmenu
2- version =3.8.6
2+ version =3.8.7
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import org.bukkit.inventory.EquipmentSlot
66import org.bukkit.inventory.Inventory
77import taboolib.common.platform.event.EventPriority
88import taboolib.common.platform.event.SubscribeEvent
9+ import taboolib.common.platform.function.info
910import taboolib.common5.Baffle
1011import taboolib.module.nms.MinecraftVersion.versionId
1112import taboolib.module.nms.nmsProxy
@@ -36,10 +37,6 @@ object ListenerItemInteract {
3637 val item = e.item ? : return
3738 val session = MenuSession .getSession(player)
3839
39- if (! InventoryNMS .instance.checkInventory(player.openInventory.topInventory)
40- || ! InventoryNMS .instance.checkInventory(player.inventory)
41- ) return
42-
4340 if (player.openInventory.topInventory.holder != (player.inventory as Inventory ).holder || session.menu != null ) return
4441 if (interactCooldown.value.hasNext(player.name)) {
4542 val menu = Menu .menus.find { it -> it.settings.boundItems.any { it.itemMatches(item, true ) } }
You can’t perform that action at this time.
0 commit comments