Fixed restock_delay by adding current time.
This commit is contained in:
@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
||||
{
|
||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||
final ProductList buyList = new ProductList(buyListId);
|
||||
forEach(list, (node) ->
|
||||
forEach(list, node ->
|
||||
{
|
||||
switch (node.getNodeName())
|
||||
{
|
||||
|
@ -121,7 +121,7 @@ public class Product
|
||||
return false;
|
||||
}
|
||||
|
||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
||||
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||
|
||||
final boolean result = _count.addAndGet(-value) >= 0;
|
||||
save();
|
||||
|
Reference in New Issue
Block a user