aboutsummaryrefslogtreecommitdiffhomepage
path: root/CraftBukkit-Patches/0115-Treat-Bungee-as-Online-Mode.patch
diff options
context:
space:
mode:
Diffstat (limited to 'CraftBukkit-Patches/0115-Treat-Bungee-as-Online-Mode.patch')
-rw-r--r--CraftBukkit-Patches/0115-Treat-Bungee-as-Online-Mode.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/CraftBukkit-Patches/0115-Treat-Bungee-as-Online-Mode.patch b/CraftBukkit-Patches/0115-Treat-Bungee-as-Online-Mode.patch
new file mode 100644
index 0000000000..9fdf5f3b9d
--- /dev/null
+++ b/CraftBukkit-Patches/0115-Treat-Bungee-as-Online-Mode.patch
@@ -0,0 +1,22 @@
+From f981d80539e8691a9a91b174e30f16e8107ceff8 Mon Sep 17 00:00:00 2001
+From: md_5 <[email protected]>
+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
+index ce66cca..56fb152 100644
+--- a/src/main/java/net/minecraft/server/NameReferencingFileConverter.java
++++ b/src/main/java/net/minecraft/server/NameReferencingFileConverter.java
+@@ -56,7 +56,7 @@ public class NameReferencingFileConverter {
+ 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;
+--
+1.9.1
+