Updated eco/libreforge

This commit is contained in:
Auxilor
2022-04-20 11:52:13 +01:00
parent 14c09ce3ac
commit cb4d99f338
6 changed files with 6 additions and 6 deletions

View File

@@ -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'

View File

@@ -3,6 +3,6 @@ version rootProject.version
subprojects {
dependencies {
implementation 'com.willfp:libreforge:3.34.0'
implementation 'com.willfp:libreforge:3.34.1'
}
}

View File

@@ -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

View File

@@ -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) {

View File

@@ -51,7 +51,7 @@ public class EnchantChecks {
return 0;
}
return FastItemStack.wrap(item).getLevelOnItem(enchantment, false);
return FastItemStack.wrap(item).getEnchantmentLevel(enchantment, false);
}
/**

View File

@@ -1,2 +1,2 @@
version = 8.57.1
version = 8.57.2
plugin-name = EcoEnchants