More itembase refactor work

This commit is contained in:
2024-03-15 11:30:03 -04:00
parent b9b04c2b9f
commit 2ceaece7d9
2 changed files with 23 additions and 25 deletions
+2 -2
View File
@@ -523,9 +523,9 @@ public class Item extends AbstractWorldObject {
writer.putIntAt(serialized, indexPosition);
}
public static Item createItemForPlayer(PlayerCharacter pc, ItemBase ib) {
public static Item createItemForPlayer(PlayerCharacter pc, int templateID) {
Item item = new Item(ib.getUUID());
Item item = new Item(templateID);
item.ownerID = pc.getObjectUUID();
item.ownerType = OwnerType.PlayerCharacter;