More item refactor work.

This commit is contained in:
2024-03-02 11:07:07 -05:00
parent d05dbef71d
commit b98e7cda15
7 changed files with 28 additions and 156 deletions
+5 -4
View File
@@ -25,7 +25,6 @@ import engine.server.MBServerStatics;
import org.joda.time.DateTime;
import org.pmw.tinylog.Logger;
import java.util.ArrayList;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ThreadLocalRandom;
@@ -57,9 +56,11 @@ public class ItemFactory {
break;
}
Item item = new Item(ib, pc.getObjectUUID(), OwnerType.PlayerCharacter, (byte) 0, (byte) 0,
(short) 1, (short) 1, true, false, ItemContainerType.INVENTORY, (byte) 0,
new ArrayList<>(), "");
Item item = new Item(ib.getUUID());
item.ownerID = pc.getObjectUUID();
item.ownerType = OwnerType.PlayerCharacter;
item.containerType = ItemContainerType.INVENTORY;
try {
item = DbManager.ItemQueries.PERSIST(item);
worked = true;