mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Update AutoDisenchanter.java
This commit is contained in:
parent
efaca45045
commit
bfb3c4f58d
@ -152,7 +152,7 @@ public class AutoDisenchanter extends AContainer {
|
|||||||
private boolean isDisenchantable(@Nullable ItemStack item) {
|
private boolean isDisenchantable(@Nullable ItemStack item) {
|
||||||
if (item == null) {
|
if (item == null) {
|
||||||
return false;
|
return false;
|
||||||
} else if (item.hasItemMeta() && item.getItemMeta().getLore() != null) {
|
} else if (item.hasItemMeta() && item.getItemMeta().hasLore()) {
|
||||||
for (String lore : cantDisenchantLores.getValue()) {
|
for (String lore : cantDisenchantLores.getValue()) {
|
||||||
if (item.getItemMeta().getLore().contains(ChatColors.color(lore))) {
|
if (item.getItemMeta().getLore().contains(ChatColors.color(lore))) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user