forked from MagicBane/Server
Renamed class to not conflict with the java.lang version.
This commit is contained in:
@@ -9,10 +9,10 @@
|
||||
|
||||
package engine.objects;
|
||||
|
||||
import engine.Enum;
|
||||
import engine.Enum.ItemContainerType;
|
||||
import engine.Enum.OwnerType;
|
||||
import engine.gameManager.DbManager;
|
||||
import engine.mbEnums;
|
||||
import engine.mbEnums.ItemContainerType;
|
||||
import engine.mbEnums.OwnerType;
|
||||
import org.pmw.tinylog.Logger;
|
||||
|
||||
import java.net.UnknownHostException;
|
||||
@@ -111,7 +111,7 @@ public class Kit extends AbstractGameObject {
|
||||
* Getters
|
||||
*/
|
||||
|
||||
private static boolean kitItemCreator(PlayerCharacter pc, int templateID, Enum.EquipSlotType slot) {
|
||||
private static boolean kitItemCreator(PlayerCharacter pc, int templateID, mbEnums.EquipSlotType slot) {
|
||||
|
||||
Item item = new Item(templateID);
|
||||
item.ownerID = pc.getObjectUUID();
|
||||
@@ -409,15 +409,15 @@ public class Kit extends AbstractGameObject {
|
||||
|
||||
public void equipPCwithKit(PlayerCharacter pc) {
|
||||
if (weapon != 0)
|
||||
kitItemCreator(pc, weapon, Enum.EquipSlotType.RHELD);
|
||||
kitItemCreator(pc, weapon, mbEnums.EquipSlotType.RHELD);
|
||||
if (offhand != 0)
|
||||
kitItemCreator(pc, offhand, Enum.EquipSlotType.LHELD);
|
||||
kitItemCreator(pc, offhand, mbEnums.EquipSlotType.LHELD);
|
||||
if (chest != 0)
|
||||
kitItemCreator(pc, chest, Enum.EquipSlotType.CHEST);
|
||||
kitItemCreator(pc, chest, mbEnums.EquipSlotType.CHEST);
|
||||
if (legs != 0)
|
||||
kitItemCreator(pc, legs, Enum.EquipSlotType.LEGS);
|
||||
kitItemCreator(pc, legs, mbEnums.EquipSlotType.LEGS);
|
||||
if (feet != 0)
|
||||
kitItemCreator(pc, feet, Enum.EquipSlotType.FEET);
|
||||
kitItemCreator(pc, feet, mbEnums.EquipSlotType.FEET);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user