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 int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -110,7 +110,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -110,7 +110,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -112,7 +112,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
@@ -111,7 +111,7 @@ public class BuyListData implements IXmlReader
|
|||||||
{
|
{
|
||||||
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
final int defaultBaseTax = parseInteger(list.getAttributes(), "baseTax", 0);
|
||||||
final ProductList buyList = new ProductList(buyListId);
|
final ProductList buyList = new ProductList(buyListId);
|
||||||
forEach(list, (node) ->
|
forEach(list, node ->
|
||||||
{
|
{
|
||||||
switch (node.getNodeName())
|
switch (node.getNodeName())
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ public class Product
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuyListTaskManager.getInstance().add(this, _restockDelay);
|
BuyListTaskManager.getInstance().add(this, Chronos.currentTimeMillis() + _restockDelay);
|
||||||
|
|
||||||
final boolean result = _count.addAndGet(-value) >= 0;
|
final boolean result = _count.addAndGet(-value) >= 0;
|
||||||
save();
|
save();
|
||||||
|
Reference in New Issue
Block a user