fix isProxyOnlineMode coverage, don't lookup UUIDs in offline mode (Fixes #2011)
This commit is contained in:
@@ -25,8 +25,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ }
|
||||
+ GameProfile profile;
|
||||
+ // Only fetch an online UUID in online mode
|
||||
+ if (net.minecraft.server.MinecraftServer.getServer().getOnlineMode()
|
||||
+ || (org.spigotmc.SpigotConfig.bungee && com.destroystokyo.paper.PaperConfig.bungeeOnlineMode)) {
|
||||
+ if (com.destroystokyo.paper.PaperConfig.isProxyOnlineMode()) {
|
||||
+ profile = console.getUserCache().getProfile( name );
|
||||
+ } else {
|
||||
+ // Make an OfflinePlayer using an offline mode UUID since the name has no profile
|
||||
|
||||
Reference in New Issue
Block a user