mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45: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:
parent
02c990cf29
commit
4b962cd810
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user