Fix an issue with World Shop Display Items being sent to the Recycling
Center.
This commit is contained in:
parent
26a465adea
commit
c0bde3fe8a
Binary file not shown.
@ -62,7 +62,7 @@ public class RecyclingCenter {
|
|||||||
|
|
||||||
public boolean IsItemAllowed(ItemStack item) {
|
public boolean IsItemAllowed(ItemStack item) {
|
||||||
//Artifact type of items are not allowed to be sent to the Recycling Center. Only artifact equipment will be sent over.
|
//Artifact type of items are not allowed to be sent to the Recycling Center. Only artifact equipment will be sent over.
|
||||||
if (Artifact.isArtifact(item) && !GenericFunctions.isArtifactEquip(item) && !ItemUtils.isArtifactDust(item)) {
|
if (ItemUtils.LoreContainsSubstring(item, "WorldShop Display Item") || (Artifact.isArtifact(item) && !GenericFunctions.isArtifactEquip(item) && !ItemUtils.isArtifactDust(item))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@ -219,7 +219,7 @@ public class RecyclingCenter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean mustBeRecycled(ItemStack it) {
|
public static boolean mustBeRecycled(ItemStack it) {
|
||||||
if (GenericFunctions.isArtifactEquip(it) || ItemUtils.isArtifactDust(it)) {
|
if ((GenericFunctions.isArtifactEquip(it) || ItemUtils.isArtifactDust(it))) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user