Fix preset group overrides for command not working properly

This commit is contained in:
Esophose 2020-08-25 18:44:27 -06:00
parent 770a934db1
commit 09fdeaf612

View file

@ -151,13 +151,11 @@ public class GroupCommandModule implements CommandModule {
group = presetGroup.getGroup();
isPreset = true;
}
if (!group.canPlayerUse(pplayer)) {
} else if (!group.canPlayerUse(pplayer)) {
localeManager.sendMessage(pplayer, "group-no-permission", StringPlaceholders.single("group", groupName));
return;
}
// Empty out the active group and fill it with clones from the target group
ParticleGroup activeGroup = pplayer.getActiveParticleGroup();
activeGroup.getParticles().clear();