Fix don't lookup profiles for blank names patch

This commit is contained in:
Shane Freeder
2022-06-09 22:37:26 +01:00
parent 44b93e65f2
commit c0a157eb9f
2 changed files with 7 additions and 6 deletions

View File

@@ -13,7 +13,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
}
};
+ if (io.papermc.paper.configuration.GlobalConfiguration.get().proxies.isProxyOnlineMode()) // Paper - only run in online mode - 100 COL
- if (!org.apache.commons.lang3.StringUtils.isBlank(name)) // Paper - Don't lookup a profile with a blank name)
+ if (!org.apache.commons.lang3.StringUtils.isBlank(name) // Paper - Don't lookup a profile with a blank name
+ && io.papermc.paper.configuration.GlobalConfiguration.get().proxies.isProxyOnlineMode()) // Paper - only run in online mode - 100 COL
repository.findProfilesByNames(new String[]{name}, Agent.MINECRAFT, profilelookupcallback);
GameProfile gameprofile = (GameProfile) atomicreference.get();