mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-07-01 19:41:20 +00:00
Fix saving wrong group when loading groups
This commit is contained in:
parent
be1c30989a
commit
dfb39e006c
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue