2015-01-05 11:32:01 +08:00
|
|
|
From 936bb7618ad141825316a249476e20791b3c1b96 Mon Sep 17 00:00:00 2001
|
2014-07-22 04:46:54 +08:00
|
|
|
From: md_5 <git@md-5.net>
|
|
|
|
Date: Sat, 12 Apr 2014 21:23:58 +1000
|
|
|
|
Subject: [PATCH] Treat Bungee as Online Mode
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/NameReferencingFileConverter.java b/src/main/java/net/minecraft/server/NameReferencingFileConverter.java
|
2014-11-28 09:17:45 +08:00
|
|
|
index 33d0702..3b50d40 100644
|
2014-07-22 04:46:54 +08:00
|
|
|
--- a/src/main/java/net/minecraft/server/NameReferencingFileConverter.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/NameReferencingFileConverter.java
|
2014-11-28 09:17:45 +08:00
|
|
|
@@ -53,7 +53,7 @@ public class NameReferencingFileConverter {
|
2014-07-22 04:46:54 +08:00
|
|
|
private static void a(MinecraftServer minecraftserver, Collection collection, ProfileLookupCallback profilelookupcallback) {
|
|
|
|
String[] astring = (String[]) Iterators.toArray(Iterators.filter(collection.iterator(), new PredicateEmptyList()), String.class);
|
|
|
|
|
|
|
|
- if (minecraftserver.getOnlineMode()) {
|
|
|
|
+ if (minecraftserver.getOnlineMode() || org.spigotmc.SpigotConfig.bungee) { // Spigot: bungee = online mode, for now.
|
|
|
|
minecraftserver.getGameProfileRepository().findProfilesByNames(astring, Agent.MINECRAFT, profilelookupcallback);
|
|
|
|
} else {
|
|
|
|
String[] astring1 = astring;
|
|
|
|
--
|
2014-11-28 09:17:45 +08:00
|
|
|
2.1.0
|
2014-07-22 04:46:54 +08:00
|
|
|
|