Merge branch 'move-catalogItem-fix' into 'dev'

For for sold out LTDs not being moved to the specified Sold Out page

See merge request morningstar/Arcturus-Community!4
This commit is contained in:
Arpy Age 2022-12-13 16:08:03 +00:00
commit 3bd6b8d461
2 changed files with 8 additions and 0 deletions

View File

@ -183,6 +183,10 @@ public class CatalogItem implements ISerialize, Runnable, Comparable<CatalogItem
return this.orderNumber;
}
public void setNeedsUpdate(boolean needsUpdate) {
this.needsUpdate = needsUpdate;
}
public synchronized void sellRare() {
this.limitedSells++;

View File

@ -674,9 +674,13 @@ public class CatalogManager {
page = this.getCatalogPage(pageId);
if (page == null)
return false;
page.getCatalogItems().put(item.getId(), item);
item.setPageId(pageId);
item.setNeedsUpdate(true);
item.run();
return true;