Fixed issue with /b choose caused by my passives rework (#693)

This commit is contained in:
Sobki 2017-01-11 08:35:14 +10:00 committed by Christopher Martin
parent 0999b39a39
commit 134def0f1d

View file

@ -133,7 +133,7 @@ public class ChooseCommand extends PKCommand {
GeneralMethods.saveSubElements(bPlayer);
Bukkit.getServer().getPluginManager().callEvent(new PlayerChangeSubElementEvent(sender, target, sub, com.projectkorra.projectkorra.event.PlayerChangeSubElementEvent.Result.CHOOSE));
} else {
bPlayer.addElement(element);
bPlayer.setElement(element);
bPlayer.getSubElements().clear();
for (SubElement sub : Element.getAllSubElements()) {
if (bPlayer.hasElement(sub.getParentElement()) && bPlayer.hasSubElementPermission(sub)) {