Skip to content

Commit

Permalink
Updated eco/libreforge
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Apr 20, 2022
1 parent 14c09ce commit cb4d99f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion eco-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ version rootProject.version

subprojects {
dependencies {
implementation 'com.willfp:libreforge:3.34.0'
implementation 'com.willfp:libreforge:3.34.1'
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public EcoEnchantsPlugin() {
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ public boolean conflictsWith(@NotNull final Enchantment enchantment) {
@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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static int getItemLevel(@Nullable final ItemStack item,
return 0;
}

return FastItemStack.wrap(item).getLevelOnItem(enchantment, false);
return FastItemStack.wrap(item).getEnchantmentLevel(enchantment, false);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = 8.57.1
version = 8.57.2
plugin-name = EcoEnchants

0 comments on commit cb4d99f

Please sign in to comment.