We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01eb974 commit 40b34f6Copy full SHA for 40b34f6
1 file changed
plugin/src/main/kotlin/trplugins/menu/module/internal/listener/ListenerItemInteract.kt
@@ -53,7 +53,11 @@ object ListenerItemInteract {
53
class InventoryNMSImpl : InventoryNMS() {
54
55
private val `clazz$CraftInventoryCustom$MinecraftInventory` =
56
- obcClass("inventory.CraftInventoryCustom\$MinecraftInventory")
+ if (versionId >= 12108) {
57
+ obcClass("inventory.CraftInventoryCustom\$MinecraftInventory")
58
+ } else {
59
+ obcClass("org.bukkit.craftbukkit.inventory.CraftInventoryCustom\$MinecraftInventory")
60
+ }
61
62
override fun checkInventory(inventory: Inventory): Boolean {
63
return `clazz$CraftInventoryCustom$MinecraftInventory`.isInstance((inventory as CraftInventory).inventory)
0 commit comments