lastNegativeId moved to ItemManager

This commit is contained in:
2024-04-19 10:32:36 -04:00
parent c03c1f4057
commit 1a7f63ce05
5 changed files with 24 additions and 9 deletions
@@ -10,10 +10,10 @@
package engine.db.handlers;
import engine.gameManager.DbManager;
import engine.gameManager.ItemManager;
import engine.mbEnums;
import engine.objects.Contract;
import engine.objects.Item;
import engine.objects.MobLoot;
import org.pmw.tinylog.Logger;
import java.sql.Connection;
@@ -66,7 +66,7 @@ public class dbContractHandler extends dbHandlerBase {
int templateID = rs.getInt("templateID");
Item item = new Item(templateID);
item.objectUUID = MobLoot.lastNegativeID.decrementAndGet();
item.objectUUID = ItemManager.lastNegativeID.decrementAndGet();
contract.getSellInventory().add(item);
}