mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
Fixed issue with /b choose caused by my passives rework (#693)
This commit is contained in:
parent
0999b39a39
commit
134def0f1d
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ public class ChooseCommand extends PKCommand {
|
||||||
GeneralMethods.saveSubElements(bPlayer);
|
GeneralMethods.saveSubElements(bPlayer);
|
||||||
Bukkit.getServer().getPluginManager().callEvent(new PlayerChangeSubElementEvent(sender, target, sub, com.projectkorra.projectkorra.event.PlayerChangeSubElementEvent.Result.CHOOSE));
|
Bukkit.getServer().getPluginManager().callEvent(new PlayerChangeSubElementEvent(sender, target, sub, com.projectkorra.projectkorra.event.PlayerChangeSubElementEvent.Result.CHOOSE));
|
||||||
} else {
|
} else {
|
||||||
bPlayer.addElement(element);
|
bPlayer.setElement(element);
|
||||||
bPlayer.getSubElements().clear();
|
bPlayer.getSubElements().clear();
|
||||||
for (SubElement sub : Element.getAllSubElements()) {
|
for (SubElement sub : Element.getAllSubElements()) {
|
||||||
if (bPlayer.hasElement(sub.getParentElement()) && bPlayer.hasSubElementPermission(sub)) {
|
if (bPlayer.hasElement(sub.getParentElement()) && bPlayer.hasSubElementPermission(sub)) {
|
||||||
|
|
Loading…
Reference in a new issue