Since .persist() is to indicate that the expansion is not provided through eCloud but through a plugin, if this is true, there is no need to check against eCloud entries.

This commit is contained in:
vk2gpz 2023-02-27 08:38:21 +11:00
parent a0b177bdd8
commit 9ce33b590e
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ public final class CloudExpansionManager {
plugin.getLocalExpansionManager().findExpansionByName(name);
if (localOpt.isPresent()) {
PlaceholderExpansion local = localOpt.get();
if (local.isRegistered()) {
if (local.isRegistered() && !local.persist()) {
expansion.setHasExpansion(true);
expansion.setShouldUpdate(
!local.getVersion().equalsIgnoreCase(expansion.getLatestVersion()));