mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 07:20:50 +01:00
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:
commit
3bd6b8d461
@ -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++;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user