Fix saving wrong group when loading groups

This commit is contained in:
Esophose 2020-03-03 18:00:14 -07:00
parent be1c30989a
commit dfb39e006c

View file

@ -165,7 +165,7 @@ public class GroupCommandModule implements CommandModule {
activeGroup.getParticles().put(particle.getId(), particle.clone()); activeGroup.getParticles().put(particle.getId(), particle.clone());
// Update group and notify player // Update group and notify player
PlayerParticlesAPI.getInstance().savePlayerParticleGroup(pplayer.getPlayer(), group); PlayerParticlesAPI.getInstance().savePlayerParticleGroup(pplayer.getPlayer(), activeGroup);
if (!isPreset) if (!isPreset)
localeManager.sendMessage(pplayer, "group-load-success", StringPlaceholders.builder("amount", activeGroup.getParticles().size()).addPlaceholder("name", groupName).build()); localeManager.sendMessage(pplayer, "group-load-success", StringPlaceholders.builder("amount", activeGroup.getParticles().size()).addPlaceholder("name", groupName).build());