Fix refine

This commit is contained in:
Yazawazi 2022-04-19 18:59:43 +08:00 committed by GitHub
parent f74ca6e9a0
commit 3da79a1dc1

View File

@ -438,8 +438,14 @@ public class InventoryManager {
return; return;
} }
if (weapon.getItemType() != ItemType.ITEM_WEAPON || weapon.getItemId() != feed.getItemId()) { if (weapon.getItemData().getAwakenMaterial() == 0) {
return; if (weapon.getItemType() != ItemType.ITEM_WEAPON || weapon.getItemId() != feed.getItemId()) {
return;
}
} else {
if (weapon.getItemType() != ItemType.ITEM_WEAPON || weapon.getItemData().getAwakenMaterial() != feed.getItemId()) {
return;
}
} }
if (weapon.getRefinement() >= 4 || weapon.getAffixes() == null || weapon.getAffixes().size() == 0) { if (weapon.getRefinement() >= 4 || weapon.getAffixes() == null || weapon.getAffixes().size() == 0) {