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) {