mirror of
https://bitbucket.org/projectswg/holocore.git
synced 2026-10-12 04:13:07 -04:00
Fixed an issue where the uniform box would grant items no matter which radial option you picked
This commit is contained in:
@@ -78,9 +78,13 @@ public class UniformBoxService extends Service {
|
||||
}
|
||||
|
||||
private void processUseUniformBox(RadialSelectionIntent rsi) {
|
||||
if (!rsi.getTarget().getTemplate().equals(UNIFORM_BOX_IFF) && !rsi.getSelection().equals(RadialItem.ITEM_USE))
|
||||
if (!rsi.getTarget().getTemplate().equals(UNIFORM_BOX_IFF))
|
||||
return;
|
||||
|
||||
if(!rsi.getSelection().equals(RadialItem.ITEM_USE)) {
|
||||
return;
|
||||
}
|
||||
|
||||
CreatureObject creature = rsi.getPlayer().getCreatureObject();
|
||||
SWGObject inventory = creature.getSlottedObject("inventory");
|
||||
String profession = creature.getPlayerObject().getProfession();
|
||||
|
||||
Reference in New Issue
Block a user