mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-15 00:07:39 -04:00
Corrected multi-colored junk items handling
This commit is contained in:
@@ -1439,8 +1439,23 @@ public class ObjectService implements INetworkDispatch {
|
||||
@Override
|
||||
public void process(SWGObject obj) {
|
||||
if (obj.getTemplate().equals(item.getTemplate())){
|
||||
alikeItemsInContainer.add(obj);
|
||||
System.out.println(obj.getTemplate());
|
||||
// Check if items are Droid Motors or Wirings
|
||||
if (obj.getTemplate().equals("object/tangible/loot/npc_loot/shared_wiring_generic.iff")){
|
||||
if (obj.getAttachment("reverse_engineering_name")!=null){
|
||||
if (obj.getAttachment("reverse_engineering_name").equals(item.getAttachment("reverse_engineering_name"))){
|
||||
alikeItemsInContainer.add(obj);
|
||||
}
|
||||
}
|
||||
} else if (obj.getTemplate().equals("object/tangible/loot/npc_loot/shared_copper_battery_generic.iff")){
|
||||
if (obj.getAttachment("reverse_engineering_name")!=null){
|
||||
if (obj.getAttachment("reverse_engineering_name").equals(item.getAttachment("reverse_engineering_name"))){
|
||||
alikeItemsInContainer.add(obj);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
alikeItemsInContainer.add(obj);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user