|
|
@ -353,11 +353,11 @@ public class Item extends AbstractWorldObject { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static boolean MakeItemForPlayer(ItemBase toCreate, PlayerCharacter reciever, int amount) { |
|
|
|
public static boolean MakeItemForPlayer(int templateID, PlayerCharacter reciever, int amount) { |
|
|
|
|
|
|
|
|
|
|
|
boolean itemWorked = false; |
|
|
|
boolean itemWorked = false; |
|
|
|
|
|
|
|
|
|
|
|
Item item = new Item(toCreate.getUUID()); |
|
|
|
Item item = new Item(templateID); |
|
|
|
|
|
|
|
|
|
|
|
item.ownerID = reciever.getObjectUUID(); |
|
|
|
item.ownerID = reciever.getObjectUUID(); |
|
|
|
item.ownerType = OwnerType.PlayerCharacter; |
|
|
|
item.ownerType = OwnerType.PlayerCharacter; |
|
|
|