See extended...

- equipAppearance no longer equips if an item already occupies that slot.  The old item must be removed first.
This commit is contained in:
Treeku
2014-09-07 22:01:02 +01:00
parent c45a04c286
commit 390e5838b5
+1 -3
View File
@@ -120,9 +120,7 @@ public class EquipmentService implements INetworkDispatch {
for (String slotName : slotNames) {
if (container.getSlottedObject(slotName) != null && !slotNames.iterator().hasNext()) {
unequipAppearance(actor, container.getSlottedObject(slotName));
container.transferTo(actor, actor.getSlottedObject("inventory"), container.getSlottedObject(slotName));
break;
return;
}
}