Duplicate method removed.
This commit is contained in:
@@ -210,14 +210,20 @@ public class Item extends AbstractWorldObject {
|
||||
this.durabilityCurrent = rs.getShort("item_durabilityCurrent");
|
||||
this.durabilityMax = rs.getShort("item_durabilityMax");
|
||||
|
||||
String ot = DbManager.ItemQueries.GET_OWNER(this.ownerID);
|
||||
DbObjectType ownerType;
|
||||
ownerType = DbManager.BuildingQueries.GET_UID_ENUM(this.ownerID);
|
||||
|
||||
if (ot.equals("character"))
|
||||
this.ownerType = OwnerType.PlayerCharacter;
|
||||
else if (ot.equals("npc"))
|
||||
this.ownerType = OwnerType.Npc;
|
||||
else if (ot.equals("account"))
|
||||
this.ownerType = OwnerType.Account;
|
||||
switch (ownerType) {
|
||||
case CHARACTER:
|
||||
this.ownerType = OwnerType.PlayerCharacter;
|
||||
break;
|
||||
case NPC:
|
||||
this.ownerType = OwnerType.Npc;
|
||||
break;
|
||||
case ACCOUNT:
|
||||
this.ownerType = OwnerType.Account;
|
||||
break;
|
||||
}
|
||||
|
||||
this.canDestroy = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user