1
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:
Rothes 2021-03-28 12:39:55 +08:00 committed by GitHub
parent efaca45045
commit bfb3c4f58d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,7 @@ public class AutoDisenchanter extends AContainer {
private boolean isDisenchantable(@Nullable ItemStack item) {
if (item == null) {
return false;
} else if (item.hasItemMeta() && item.getItemMeta().getLore() != null) {
} else if (item.hasItemMeta() && item.getItemMeta().hasLore()) {
for (String lore : cantDisenchantLores.getValue()) {
if (item.getItemMeta().getLore().contains(ChatColors.color(lore))) {
return false;