1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Update src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/electric/machines/enchanting/AutoDisenchanter.java

Co-authored-by: Daniel Walsh <walshydev@gmail.com>
This commit is contained in:
Rothes 2021-03-27 06:25:41 +08:00 committed by GitHub
parent 02c990cf29
commit 4b962cd810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,7 +150,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(lore)) {
return false;