forked from MagicBane/Server
Sell inventory get negative uid
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user