Browse Source

Rename 'unloadCpes' to 'unloadCosmeticEffects'

tags/1.4.1
Nazar Kalinowski 1 year ago
parent
commit
2c51cc74d3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/java/dev/gwm/spongeplugin/cosmetics/Cosmetics.java

+ 2
- 2
src/main/java/dev/gwm/spongeplugin/cosmetics/Cosmetics.java View File

@@ -156,7 +156,7 @@ public class Cosmetics extends SpongePlugin {
languageConfig.reload();
loadConfigValues();
language = new Language(this);
unloadCpes();
unloadCosmeticEffects();
loadCpes();
logger.info("Plugin has been reloaded.");
}
@@ -204,7 +204,7 @@ public class Cosmetics extends SpongePlugin {
}
}
private void unloadCpes() {
private void unloadCosmeticEffects() {
Sponge.getServiceManager().provide(SuperObjectsService.class).get().
shutdownCreatedSuperObjects(superObject -> superObject instanceof CosmeticEffect);
}


Loading…
Cancel
Save