mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 08:50:51 +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;
|
return this.orderNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setNeedsUpdate(boolean needsUpdate) {
|
||||||
|
this.needsUpdate = needsUpdate;
|
||||||
|
}
|
||||||
|
|
||||||
public synchronized void sellRare() {
|
public synchronized void sellRare() {
|
||||||
this.limitedSells++;
|
this.limitedSells++;
|
||||||
|
|
||||||
|
@ -674,9 +674,13 @@ public class CatalogManager {
|
|||||||
|
|
||||||
page = this.getCatalogPage(pageId);
|
page = this.getCatalogPage(pageId);
|
||||||
|
|
||||||
|
if (page == null)
|
||||||
|
return false;
|
||||||
|
|
||||||
page.getCatalogItems().put(item.getId(), item);
|
page.getCatalogItems().put(item.getId(), item);
|
||||||
|
|
||||||
item.setPageId(pageId);
|
item.setPageId(pageId);
|
||||||
|
item.setNeedsUpdate(true);
|
||||||
|
|
||||||
item.run();
|
item.run();
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user