Updated eco/libreforge
This commit is contained in:
@@ -55,7 +55,7 @@ allprojects {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'com.willfp:eco:6.33.0'
|
||||
compileOnly 'com.willfp:eco:6.34.0'
|
||||
|
||||
compileOnly 'org.jetbrains:annotations:22.0.0'
|
||||
|
||||
|
||||
@@ -3,6 +3,6 @@ version rootProject.version
|
||||
|
||||
subprojects {
|
||||
dependencies {
|
||||
implementation 'com.willfp:libreforge:3.34.0'
|
||||
implementation 'com.willfp:libreforge:3.34.1'
|
||||
}
|
||||
}
|
||||
@@ -89,7 +89,7 @@ public class EcoEnchantsPlugin extends LibReforgePlugin {
|
||||
public void handleEnableAdditional() {
|
||||
this.getLogger().info(EcoEnchants.values().size() + " Enchantments Loaded");
|
||||
|
||||
TelekinesisUtils.registerTest(player -> FastItemStack.wrap(player.getInventory().getItemInMainHand()).getLevelOnItem(EcoEnchants.TELEKINESIS, false) > 0);
|
||||
TelekinesisUtils.registerTest(player -> FastItemStack.wrap(player.getInventory().getItemInMainHand()).getEnchantmentLevel(EcoEnchants.TELEKINESIS, false) > 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -474,7 +474,7 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Watche
|
||||
@Override
|
||||
public boolean canEnchantItem(@NotNull final ItemStack itemStack) {
|
||||
if (this.type.isSingular() && EcoEnchants.hasAnyOfType(itemStack, this.type)) {
|
||||
return FastItemStack.wrap(itemStack).getLevelOnItem(this, true) > 0;
|
||||
return FastItemStack.wrap(itemStack).getEnchantmentLevel(this, true) > 0;
|
||||
}
|
||||
|
||||
if (itemStack.getType() == Material.BOOK || itemStack.getType() == Material.ENCHANTED_BOOK) {
|
||||
|
||||
@@ -51,7 +51,7 @@ public class EnchantChecks {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return FastItemStack.wrap(item).getLevelOnItem(enchantment, false);
|
||||
return FastItemStack.wrap(item).getEnchantmentLevel(enchantment, false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
version = 8.57.1
|
||||
version = 8.57.2
|
||||
plugin-name = EcoEnchants
|
||||
Reference in New Issue
Block a user