mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-24 05:51:21 +01:00
Codestyle
This commit is contained in:
parent
a75671027a
commit
31591de719
@ -2,5 +2,5 @@ group 'com.willfp'
|
||||
version rootProject.version
|
||||
|
||||
dependencies {
|
||||
compileOnly 'org.spigotmc:spigot:1.18-R0.1-SNAPSHOT'
|
||||
compileOnly 'org.spigotmc:spigot:1.18.1-R0.1-SNAPSHOT'
|
||||
}
|
@ -447,10 +447,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)) {
|
||||
if (FastItemStack.wrap(itemStack).getLevelOnItem(this, true) > 0) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return FastItemStack.wrap(itemStack).getLevelOnItem(this, true) > 0;
|
||||
}
|
||||
|
||||
if (itemStack.getType() == Material.BOOK || itemStack.getType() == Material.ENCHANTED_BOOK) {
|
||||
|
Loading…
Reference in New Issue
Block a user