From 134def0f1d75ab11ffd9151dbd6f3e5dfb01c0b5 Mon Sep 17 00:00:00 2001 From: Sobki Date: Wed, 11 Jan 2017 08:35:14 +1000 Subject: [PATCH] Fixed issue with /b choose caused by my passives rework (#693) --- src/com/projectkorra/projectkorra/command/ChooseCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/projectkorra/projectkorra/command/ChooseCommand.java b/src/com/projectkorra/projectkorra/command/ChooseCommand.java index 51338d23..1b8c9952 100644 --- a/src/com/projectkorra/projectkorra/command/ChooseCommand.java +++ b/src/com/projectkorra/projectkorra/command/ChooseCommand.java @@ -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)) {