mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-25 15:35:11 +01:00
Fixed proxies
This commit is contained in:
parent
924d42b96e
commit
1fd54faa04
@ -14,6 +14,9 @@ class EcoCraftEnchantmentManager : EcoCraftEnchantmentManagerProxy {
|
||||
val key = org.bukkit.craftbukkit.v1_17_R1.util.CraftNamespacedKey.fromMinecraft(
|
||||
net.minecraft.core.IRegistry.X.getKey(enchant)
|
||||
)
|
||||
if (key.key != enchantment.key.key) {
|
||||
continue
|
||||
}
|
||||
EcoCraftEnchantment(enchant, maxLevel, conflicts).register()
|
||||
}
|
||||
}
|
||||
|
@ -14,6 +14,9 @@ class EcoCraftEnchantmentManager : EcoCraftEnchantmentManagerProxy {
|
||||
val key = org.bukkit.craftbukkit.v1_18_R1.util.CraftNamespacedKey.fromMinecraft(
|
||||
net.minecraft.core.IRegistry.Y.b(enchant)
|
||||
)
|
||||
if (key.key != enchantment.key.key) {
|
||||
continue
|
||||
}
|
||||
EcoCraftEnchantment(enchant, maxLevel, conflicts).register()
|
||||
}
|
||||
}
|
||||
|
@ -14,6 +14,9 @@ class EcoCraftEnchantmentManager : EcoCraftEnchantmentManagerProxy {
|
||||
val key = org.bukkit.craftbukkit.v1_18_R2.util.CraftNamespacedKey.fromMinecraft(
|
||||
net.minecraft.core.IRegistry.V.b(enchant)
|
||||
)
|
||||
if (key.key != enchantment.key.key) {
|
||||
continue
|
||||
}
|
||||
EcoCraftEnchantment(enchant, maxLevel, conflicts).register()
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ import com.willfp.ecoenchants.enchants.EcoEnchant
|
||||
import com.willfp.ecoenchants.enchants.EcoEnchants
|
||||
import net.minecraft.world.item.enchantment.Enchantment
|
||||
import org.bukkit.NamespacedKey
|
||||
import org.bukkit.craftbukkit.v1_17_R1.enchantments.CraftEnchantment
|
||||
import org.bukkit.craftbukkit.v1_19_R1.enchantments.CraftEnchantment
|
||||
|
||||
class EcoCraftEnchantment(
|
||||
target: Enchantment,
|
||||
|
@ -14,6 +14,9 @@ class EcoCraftEnchantmentManager : EcoCraftEnchantmentManagerProxy {
|
||||
val key = org.bukkit.craftbukkit.v1_19_R1.util.CraftNamespacedKey.fromMinecraft(
|
||||
net.minecraft.core.IRegistry.W.b(enchant)
|
||||
)
|
||||
if (key.key != enchantment.key.key) {
|
||||
continue
|
||||
}
|
||||
EcoCraftEnchantment(enchant, maxLevel, conflicts).register()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user