Skip to content

Commit 757ca20

Browse files
committed
fix(listener): update CraftInventoryCustom class reference
1 parent 40b34f6 commit 757ca20

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

plugin/src/main/kotlin/trplugins/menu/module/internal/listener/ListenerItemInteract.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ object ListenerItemInteract {
5353
class InventoryNMSImpl : InventoryNMS() {
5454

5555
private val `clazz$CraftInventoryCustom$MinecraftInventory` =
56-
if (versionId >= 12108) {
57-
obcClass("inventory.CraftInventoryCustom\$MinecraftInventory")
58-
} else {
59-
obcClass("org.bukkit.craftbukkit.inventory.CraftInventoryCustom\$MinecraftInventory")
60-
}
56+
obcClass("inventory.CraftInventoryCustom\$MinecraftInventory")
6157

6258
override fun checkInventory(inventory: Inventory): Boolean {
6359
return `clazz$CraftInventoryCustom$MinecraftInventory`.isInstance((inventory as CraftInventory).inventory)

0 commit comments

Comments
 (0)