mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-04 05:16:21 -04:00
Equipment changes, see extended
Fixed an issue where attributes weren't being removed when unequipping items. EquipmentList and ApperaranceList are currently broken and will cause crashes when modified, thus when equipping an item in any way will cause a crash. Expect a fix for that from Treeku shortly.
This commit is contained in:
@@ -931,6 +931,15 @@ public class CreatureObject extends TangibleObject implements IPersistent {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isWearing(SWGObject object)
|
||||
{
|
||||
for (Equipment equipment : getEquipmentList())
|
||||
{
|
||||
if (equipment.getObjectId() == object.getObjectId()) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public void removeObjectFromEquipList(SWGObject object) {
|
||||
if (object instanceof TangibleObject) {
|
||||
for (Equipment equipment : getEquipmentList()) {
|
||||
|
||||
Reference in New Issue
Block a user