Browse Source

Sell inventory get negative uid

combat-2
MagicBot 8 months ago
parent
commit
0004bb63b0
  1. 7
      src/engine/db/handlers/dbContractHandler.java

7
src/engine/db/handlers/dbContractHandler.java

@ -12,8 +12,8 @@ package engine.db.handlers;
import engine.Enum; import engine.Enum;
import engine.gameManager.DbManager; import engine.gameManager.DbManager;
import engine.objects.Contract; import engine.objects.Contract;
import engine.objects.ItemTemplate;
import engine.objects.Item; import engine.objects.Item;
import engine.objects.MobLoot;
import org.pmw.tinylog.Logger; import org.pmw.tinylog.Logger;
import java.sql.Connection; import java.sql.Connection;
@ -65,8 +65,9 @@ public class dbContractHandler extends dbHandlerBase {
int templateID = rs.getInt("itembaseID"); int templateID = rs.getInt("itembaseID");
Item me = new Item(templateID); Item item = new Item(templateID);
contract.getSellInventory().add(me); item.objectUUID = MobLoot.lastNegativeID.decrementAndGet();
contract.getSellInventory().add(item);
} }
} catch (SQLException e) { } catch (SQLException e) {

Loading…
Cancel
Save