forked from MagicBane/Server
Equipslot stored as string
This commit is contained in:
@@ -147,7 +147,12 @@ public class Item extends AbstractWorldObject {
|
||||
|
||||
this.canDestroy = true;
|
||||
|
||||
this.equipSlot = EquipSlotType.values()[rs.getByte("equipSlot")];
|
||||
String equipString = rs.getString("equipSlot");
|
||||
|
||||
if (equipString.isEmpty())
|
||||
this.equipSlot = EquipSlotType.NONE;
|
||||
else
|
||||
this.equipSlot = EquipSlotType.valueOf(equipString);
|
||||
|
||||
this.numberOfItems = rs.getInt("numberOfItems");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user