From 0004bb63b05b6b80f794d79427e4c6191b825068 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 24 Mar 2024 07:55:59 -0400 Subject: [PATCH] Sell inventory get negative uid --- src/engine/db/handlers/dbContractHandler.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/engine/db/handlers/dbContractHandler.java b/src/engine/db/handlers/dbContractHandler.java index 211399bb..27285e1a 100644 --- a/src/engine/db/handlers/dbContractHandler.java +++ b/src/engine/db/handlers/dbContractHandler.java @@ -12,8 +12,8 @@ package engine.db.handlers; import engine.Enum; import engine.gameManager.DbManager; import engine.objects.Contract; -import engine.objects.ItemTemplate; import engine.objects.Item; +import engine.objects.MobLoot; import org.pmw.tinylog.Logger; import java.sql.Connection; @@ -65,8 +65,9 @@ public class dbContractHandler extends dbHandlerBase { int templateID = rs.getInt("itembaseID"); - Item me = new Item(templateID); - contract.getSellInventory().add(me); + Item item = new Item(templateID); + item.objectUUID = MobLoot.lastNegativeID.decrementAndGet(); + contract.getSellInventory().add(item); } } catch (SQLException e) {