forked from MagicBane/Server
Refactor of signature
This commit is contained in:
@@ -364,8 +364,8 @@ public class dbItemHandler extends dbHandlerBase {
|
||||
}
|
||||
|
||||
//Used to transfer a single item between owners or equip or vault or bank or inventory
|
||||
public boolean UPDATE_OWNER(final Item item, int newOwnerID, boolean ownerNPC, boolean ownerPlayer,
|
||||
boolean ownerAccount, ItemContainerType containerType, int slot) {
|
||||
public boolean UPDATE_OWNER(final Item item, int newOwnerID,
|
||||
ItemContainerType containerType, Enum.EquipSlotType slot) {
|
||||
|
||||
boolean worked = false;
|
||||
|
||||
@@ -399,10 +399,11 @@ public class dbItemHandler extends dbHandlerBase {
|
||||
preparedStatement.setString(3, "none"); //Shouldn't be here
|
||||
break;
|
||||
}
|
||||
if (item.equipSlot.equals(Enum.EquipSlotType.NONE))
|
||||
|
||||
if (slot.equals(Enum.EquipSlotType.NONE))
|
||||
preparedStatement.setString(4, "");
|
||||
else
|
||||
preparedStatement.setString(4, item.equipSlot.name());
|
||||
preparedStatement.setString(4, slot.name());
|
||||
|
||||
ResultSet rs = preparedStatement.executeQuery();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user