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(); group = presetGroup.getGroup();
isPreset = true; isPreset = true;
} } else if (!group.canPlayerUse(pplayer)) {
if (!group.canPlayerUse(pplayer)) {
localeManager.sendMessage(pplayer, "group-no-permission", StringPlaceholders.single("group", groupName)); localeManager.sendMessage(pplayer, "group-no-permission", StringPlaceholders.single("group", groupName));
return; return;
} }
// Empty out the active group and fill it with clones from the target group // Empty out the active group and fill it with clones from the target group
ParticleGroup activeGroup = pplayer.getActiveParticleGroup(); ParticleGroup activeGroup = pplayer.getActiveParticleGroup();
activeGroup.getParticles().clear(); activeGroup.getParticles().clear();