diff --git a/Bukkit-Patches/0001-POM-Changes.patch b/Bukkit-Patches/0001-POM-Changes.patch index e6de3c5..0f43982 100644 --- a/Bukkit-Patches/0001-POM-Changes.patch +++ b/Bukkit-Patches/0001-POM-Changes.patch @@ -1,11 +1,11 @@ -From 868cd5a60fbd282dd9eb54b196dee70088dd3c0e Mon Sep 17 00:00:00 2001 +From 8d954ca68fa1829aab7497155ad91a55f4f6a312 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 2 Jun 2013 10:36:24 +1000 Subject: [PATCH] POM Changes diff --git a/pom.xml b/pom.xml -index 9dd0d06..78f50bd 100644 +index a674b3f..f38a019 100644 --- a/pom.xml +++ b/pom.xml @@ -9,14 +9,14 @@ @@ -16,7 +16,7 @@ index 9dd0d06..78f50bd 100644 - bukkit + org.spigotmc + spigot-api - 1.8.3-R0.1-SNAPSHOT + 1.8.4-R0.1-SNAPSHOT jar - Bukkit @@ -29,5 +29,5 @@ index 9dd0d06..78f50bd 100644 1.6 -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0001-POM-Changes.patch b/CraftBukkit-Patches/0001-POM-Changes.patch index 90d49b5..2d16e08 100644 --- a/CraftBukkit-Patches/0001-POM-Changes.patch +++ b/CraftBukkit-Patches/0001-POM-Changes.patch @@ -1,4 +1,4 @@ -From 9af5d59407a8ffd25db9618d1afeb509c197f52b Mon Sep 17 00:00:00 2001 +From a326d05aad5efc05a9fabeefbeae21b4a132ed36 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 2 Jul 2013 13:07:39 +1000 Subject: [PATCH] POM Changes @@ -6,7 +6,7 @@ Subject: [PATCH] POM Changes Basic changes to the build system which mark the artifact as Spigot, and the necessary code changes to ensure proper functionality. Also disables the auto updater provided by CraftBukkit as it is useless to us. diff --git a/pom.xml b/pom.xml -index d8f0054..1c8d4ea 100644 +index c5503f6..333f528 100644 --- a/pom.xml +++ b/pom.xml @@ -1,12 +1,12 @@ @@ -18,7 +18,7 @@ index d8f0054..1c8d4ea 100644 + org.spigotmc + spigot jar - 1.8.3-R0.1-SNAPSHOT + 1.8.4-R0.1-SNAPSHOT - CraftBukkit - http://www.bukkit.org + Spigot @@ -111,5 +111,5 @@ index f905d17..9304637 100644 if (stream != null) { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0002-mc-dev-imports.patch b/CraftBukkit-Patches/0002-mc-dev-imports.patch index 29197a6..a8b899a 100644 --- a/CraftBukkit-Patches/0002-mc-dev-imports.patch +++ b/CraftBukkit-Patches/0002-mc-dev-imports.patch @@ -1,4 +1,4 @@ -From 20f805a73e32f1fb0ce46928b921685fbf92661a Mon Sep 17 00:00:00 2001 +From cf7c6c8710b54f1a7451163c6aab72baf7865e42 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 1 Dec 2013 15:10:48 +1100 Subject: [PATCH] mc-dev imports @@ -1000,10 +1000,10 @@ index 0000000..f15b199 +} diff --git a/src/main/java/net/minecraft/server/CommandDispatcher.java b/src/main/java/net/minecraft/server/CommandDispatcher.java new file mode 100644 -index 0000000..54133a7 +index 0000000..81289b7 --- /dev/null +++ b/src/main/java/net/minecraft/server/CommandDispatcher.java -@@ -0,0 +1,113 @@ +@@ -0,0 +1,118 @@ +package net.minecraft.server; + +import java.util.Iterator; @@ -1054,7 +1054,7 @@ index 0000000..54133a7 + this.a((ICommand) (new CommandWorldBorder())); + this.a((ICommand) (new CommandTitle())); + this.a((ICommand) (new CommandEntityData())); -+ if (MinecraftServer.getServer().ad()) { ++ if (MinecraftServer.getServer().ae()) { + this.a((ICommand) (new CommandOp())); + this.a((ICommand) (new CommandDeop())); + this.a((ICommand) (new CommandStop())); @@ -1095,8 +1095,13 @@ index 0000000..54133a7 + while (iterator.hasNext()) { + EntityHuman entityhuman = (EntityHuman) iterator.next(); + -+ if (entityhuman != icommandlistener && minecraftserver.getPlayerList().isOp(entityhuman.getProfile()) && icommand.canUse(icommandlistener) && (!(icommandlistener instanceof RemoteControlCommandListener) || MinecraftServer.getServer().q())) { -+ entityhuman.sendMessage(chatmessage); ++ if (entityhuman != icommandlistener && minecraftserver.getPlayerList().isOp(entityhuman.getProfile()) && icommand.canUse(icommandlistener)) { ++ boolean flag1 = icommandlistener instanceof MinecraftServer && MinecraftServer.getServer().r(); ++ boolean flag2 = icommandlistener instanceof RemoteControlCommandListener && MinecraftServer.getServer().q(); ++ ++ if (flag1 || flag2 || !(icommandlistener instanceof RemoteControlCommandListener) && !(icommandlistener instanceof MinecraftServer)) { ++ entityhuman.sendMessage(chatmessage); ++ } + } + } + } @@ -1105,13 +1110,13 @@ index 0000000..54133a7 + minecraftserver.sendMessage(chatmessage); + } + -+ boolean flag1 = minecraftserver.worldServer[0].getGameRules().getBoolean("sendCommandFeedback"); ++ boolean flag3 = minecraftserver.worldServer[0].getGameRules().getBoolean("sendCommandFeedback"); + + if (icommandlistener instanceof CommandBlockListenerAbstract) { -+ flag1 = ((CommandBlockListenerAbstract) icommandlistener).m(); ++ flag3 = ((CommandBlockListenerAbstract) icommandlistener).m(); + } + -+ if ((i & 1) != 1 && flag1) { ++ if ((i & 1) != 1 && flag3 || icommandlistener instanceof MinecraftServer) { + icommandlistener.sendMessage(new ChatMessage(s, aobject)); + } + @@ -1995,7 +2000,7 @@ index 0000000..27ce9d9 +} diff --git a/src/main/java/net/minecraft/server/GenericAttributes.java b/src/main/java/net/minecraft/server/GenericAttributes.java new file mode 100644 -index 0000000..871859f +index 0000000..59b06c4 --- /dev/null +++ b/src/main/java/net/minecraft/server/GenericAttributes.java @@ -0,0 +1,114 @@ @@ -2011,10 +2016,10 @@ index 0000000..871859f + + private static final Logger f = LogManager.getLogger(); + public static final IAttribute maxHealth = (new AttributeRanged((IAttribute) null, "generic.maxHealth", 20.0D, 0.0D, Double.MAX_VALUE)).a("Max Health").a(true); -+ public static final IAttribute b = (new AttributeRanged((IAttribute) null, "generic.followRange", 32.0D, 0.0D, 2048.0D)).a("Follow Range"); ++ public static final IAttribute FOLLOW_RANGE = (new AttributeRanged((IAttribute) null, "generic.followRange", 32.0D, 0.0D, 2048.0D)).a("Follow Range"); + public static final IAttribute c = (new AttributeRanged((IAttribute) null, "generic.knockbackResistance", 0.0D, 0.0D, 1.0D)).a("Knockback Resistance"); -+ public static final IAttribute d = (new AttributeRanged((IAttribute) null, "generic.movementSpeed", 0.699999988079071D, 0.0D, Double.MAX_VALUE)).a("Movement Speed").a(true); -+ public static final IAttribute e = new AttributeRanged((IAttribute) null, "generic.attackDamage", 2.0D, 0.0D, Double.MAX_VALUE); ++ public static final IAttribute MOVEMENT_SPEED = (new AttributeRanged((IAttribute) null, "generic.movementSpeed", 0.699999988079071D, 0.0D, Double.MAX_VALUE)).a("Movement Speed").a(true); ++ public static final IAttribute ATTACK_DAMAGE = new AttributeRanged((IAttribute) null, "generic.attackDamage", 2.0D, 0.0D, Double.MAX_VALUE); + + public static NBTTagList a(AttributeMapBase attributemapbase) { + NBTTagList nbttaglist = new NBTTagList(); @@ -2582,10 +2587,10 @@ index 0000000..2a04b86 +} diff --git a/src/main/java/net/minecraft/server/NBTTagByteArray.java b/src/main/java/net/minecraft/server/NBTTagByteArray.java new file mode 100644 -index 0000000..3eeed3e +index 0000000..c6b5f70 --- /dev/null +++ b/src/main/java/net/minecraft/server/NBTTagByteArray.java -@@ -0,0 +1,57 @@ +@@ -0,0 +1,58 @@ +package net.minecraft.server; + +import java.io.DataInput; @@ -2609,6 +2614,7 @@ index 0000000..3eeed3e + } + + void load(DataInput datainput, int i, NBTReadLimiter nbtreadlimiter) throws IOException { ++ nbtreadlimiter.a(192L); + int j = datainput.readInt(); + + nbtreadlimiter.a((long) (8 * j)); @@ -2645,10 +2651,10 @@ index 0000000..3eeed3e +} diff --git a/src/main/java/net/minecraft/server/NBTTagIntArray.java b/src/main/java/net/minecraft/server/NBTTagIntArray.java new file mode 100644 -index 0000000..63c3bf9 +index 0000000..5f17034 --- /dev/null +++ b/src/main/java/net/minecraft/server/NBTTagIntArray.java -@@ -0,0 +1,75 @@ +@@ -0,0 +1,76 @@ +package net.minecraft.server; + +import java.io.DataInput; @@ -2676,6 +2682,7 @@ index 0000000..63c3bf9 + } + + void load(DataInput datainput, int i, NBTReadLimiter nbtreadlimiter) throws IOException { ++ nbtreadlimiter.a(192L); + int j = datainput.readInt(); + + nbtreadlimiter.a((long) (32 * j)); @@ -3645,7 +3652,7 @@ index 0000000..b07e7d5 +} diff --git a/src/main/java/net/minecraft/server/ServerConnection.java b/src/main/java/net/minecraft/server/ServerConnection.java new file mode 100644 -index 0000000..42188fa +index 0000000..86b1f37 --- /dev/null +++ b/src/main/java/net/minecraft/server/ServerConnection.java @@ -0,0 +1,175 @@ @@ -3725,7 +3732,7 @@ index 0000000..42188fa + Class oclass; + LazyInitVar lazyinitvar; + -+ if (Epoll.isAvailable() && this.f.ah()) { ++ if (Epoll.isAvailable() && this.f.ai()) { + oclass = EpollServerSocketChannel.class; + lazyinitvar = ServerConnection.b; + ServerConnection.e.info("Using epoll channel type"); @@ -3806,8 +3813,8 @@ index 0000000..42188fa + ServerConnection.e.warn("Failed to handle packet for " + networkmanager.getSocketAddress(), exception); + final ChatComponentText chatcomponenttext = new ChatComponentText("Internal server error"); + -+ networkmanager.a(new PacketPlayOutKickDisconnect(chatcomponenttext), new GenericFutureListener>() { -+ public void operationComplete(Future future) throws Exception { ++ networkmanager.a(new PacketPlayOutKickDisconnect(chatcomponenttext), new GenericFutureListener() { ++ public void operationComplete(Future future) throws Exception { + networkmanager.close(chatcomponenttext); + } + }, new GenericFutureListener[0]); @@ -3826,7 +3833,7 @@ index 0000000..42188fa +} diff --git a/src/main/java/net/minecraft/server/ServerStatisticManager.java b/src/main/java/net/minecraft/server/ServerStatisticManager.java new file mode 100644 -index 0000000..97c3e79 +index 0000000..46845cd --- /dev/null +++ b/src/main/java/net/minecraft/server/ServerStatisticManager.java @@ -0,0 +1,212 @@ @@ -3895,14 +3902,14 @@ index 0000000..97c3e79 + this.e.add(statistic); + if (statistic.d() && j == 0 && i > 0) { + this.g = true; -+ if (this.c.aA()) { ++ if (this.c.aB()) { + this.c.getPlayerList().sendMessage(new ChatMessage("chat.type.achievement", new Object[] { entityhuman.getScoreboardDisplayName(), statistic.j()})); + } + } + + if (statistic.d() && j > 0 && i == 0) { + this.g = true; -+ if (this.c.aA()) { ++ if (this.c.aB()) { + this.c.getPlayerList().sendMessage(new ChatMessage("chat.type.achievement.taken", new Object[] { entityhuman.getScoreboardDisplayName(), statistic.j()})); + } + } @@ -4005,7 +4012,7 @@ index 0000000..97c3e79 + } + + public void a(EntityPlayer entityplayer) { -+ int i = this.c.as(); ++ int i = this.c.at(); + HashMap hashmap = Maps.newHashMap(); + + if (this.g || i - this.f > 300) { @@ -4287,10 +4294,10 @@ index 0000000..0bced98 +} diff --git a/src/main/java/net/minecraft/server/UserCache.java b/src/main/java/net/minecraft/server/UserCache.java new file mode 100644 -index 0000000..f053f4e +index 0000000..78f1f57 --- /dev/null +++ b/src/main/java/net/minecraft/server/UserCache.java -@@ -0,0 +1,346 @@ +@@ -0,0 +1,338 @@ +package net.minecraft.server; + +import com.google.common.base.Charsets; @@ -4408,14 +4415,13 @@ index 0000000..f053f4e + UserCache.UserCacheEntry usercache_usercacheentry1 = (UserCache.UserCacheEntry) this.d.get(uuid); + + this.c.remove(usercache_usercacheentry1.a().getName().toLowerCase(Locale.ROOT)); -+ this.c.put(gameprofile.getName().toLowerCase(Locale.ROOT), usercache_usercacheentry); + this.e.remove(gameprofile); -+ } else { -+ this.d.put(uuid, usercache_usercacheentry); -+ this.c.put(s, usercache_usercacheentry); + } + ++ this.c.put(gameprofile.getName().toLowerCase(Locale.ROOT), usercache_usercacheentry); ++ this.d.put(uuid, usercache_usercacheentry); + this.e.addFirst(gameprofile); ++ this.c(); + } + + public GameProfile getProfile(String s) { @@ -4473,29 +4479,16 @@ index 0000000..f053f4e + } + + public void b() { -+ List list = null; + BufferedReader bufferedreader = null; + -+ label64: { -+ try { -+ bufferedreader = Files.newReader(this.g, Charsets.UTF_8); -+ list = (List) this.b.fromJson(bufferedreader, UserCache.h); -+ break label64; -+ } catch (FileNotFoundException filenotfoundexception) { -+ ; -+ } finally { -+ IOUtils.closeQuietly(bufferedreader); -+ } ++ try { ++ bufferedreader = Files.newReader(this.g, Charsets.UTF_8); ++ List list = (List) this.b.fromJson(bufferedreader, UserCache.h); + -+ return; -+ } -+ -+ if (list != null) { + this.c.clear(); + this.d.clear(); + this.e.clear(); -+ list = Lists.reverse(list); -+ Iterator iterator = list.iterator(); ++ Iterator iterator = Lists.reverse(list).iterator(); + + while (iterator.hasNext()) { + UserCache.UserCacheEntry usercache_usercacheentry = (UserCache.UserCacheEntry) iterator.next(); @@ -4504,6 +4497,12 @@ index 0000000..f053f4e + this.a(usercache_usercacheentry.a(), usercache_usercacheentry.b()); + } + } ++ } catch (FileNotFoundException filenotfoundexception) { ++ ; ++ } catch (JsonParseException jsonparseexception) { ++ ; ++ } finally { ++ IOUtils.closeQuietly(bufferedreader); + } + + } @@ -5230,5 +5229,5 @@ index 0000000..31fc0a9 + } +} -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0004-Obfuscation-Helpers.patch b/CraftBukkit-Patches/0004-Obfuscation-Helpers.patch index e1048f0..84aea3c 100644 --- a/CraftBukkit-Patches/0004-Obfuscation-Helpers.patch +++ b/CraftBukkit-Patches/0004-Obfuscation-Helpers.patch @@ -1,4 +1,4 @@ -From 6c994ca4fee73695c21b01d45a788c411183c743 Mon Sep 17 00:00:00 2001 +From 81ac39d4872b1c7aafdb5d97d52d300cd9fe8cf1 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 14 Apr 2014 10:38:04 +1000 Subject: [PATCH] Obfuscation Helpers @@ -6,10 +6,10 @@ Subject: [PATCH] Obfuscation Helpers Provides several friendly named methods which map to a obfuscated method. Obfuscated methods which are used frequently should be added to this file to ease with updates to new Minecraft versions. diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 2693031..611a623 100644 +index f82dffc..4393458 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -1284,6 +1284,12 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -1290,6 +1290,12 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs } @@ -19,9 +19,9 @@ index 2693031..611a623 100644 + return this.q; + } + // Spigot End - public ServerConnection ap() { + public ServerConnection aq() { return this.q; } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0005-Spigot-Configuration.patch b/CraftBukkit-Patches/0005-Spigot-Configuration.patch index a77d06f..b9ed82c 100644 --- a/CraftBukkit-Patches/0005-Spigot-Configuration.patch +++ b/CraftBukkit-Patches/0005-Spigot-Configuration.patch @@ -1,4 +1,4 @@ -From e22436b730037f735845b884f6de8e28fa2416b4 Mon Sep 17 00:00:00 2001 +From 8da8982b64580b634950760eecc6e828066f436e Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 7 Jul 2013 09:32:53 +1000 Subject: [PATCH] Spigot Configuration @@ -6,11 +6,11 @@ Subject: [PATCH] Spigot Configuration Provides the basic infrastructure to load and save the Spigot configuration file, spigot.yml diff --git a/src/main/java/net/minecraft/server/DedicatedServer.java b/src/main/java/net/minecraft/server/DedicatedServer.java -index d57a796..8bc6ad6 100644 +index c922b4c..fc5e8cf 100644 --- a/src/main/java/net/minecraft/server/DedicatedServer.java +++ b/src/main/java/net/minecraft/server/DedicatedServer.java @@ -163,6 +163,11 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer - if (this.Q() < 0) { + if (this.R() < 0) { this.setPort(this.propertyManager.getInt("server-port", 25565)); } + // Spigot start @@ -35,7 +35,7 @@ index d57a796..8bc6ad6 100644 if (!this.getOnlineMode()) { DedicatedServer.LOGGER.warn("**** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!"); diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java -index d66b1bd..52e3cfa 100644 +index d83842a..0356d9e 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -102,6 +102,7 @@ public abstract class World implements IBlockAccess { @@ -316,5 +316,5 @@ index 0000000..961ddb4 + } +} -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0009-Merge-tweaks-and-configuration.patch b/CraftBukkit-Patches/0008-Merge-tweaks-and-configuration.patch similarity index 97% rename from CraftBukkit-Patches/0009-Merge-tweaks-and-configuration.patch rename to CraftBukkit-Patches/0008-Merge-tweaks-and-configuration.patch index 92dc073..cfae380 100644 --- a/CraftBukkit-Patches/0009-Merge-tweaks-and-configuration.patch +++ b/CraftBukkit-Patches/0008-Merge-tweaks-and-configuration.patch @@ -1,4 +1,4 @@ -From 0af2cebd81e9666fba6d41c5147f1aee3b836c7a Mon Sep 17 00:00:00 2001 +From 9ef3f73eede644ade5f6039f631806b6c688c4d5 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 23 Mar 2013 09:46:33 +1100 Subject: [PATCH] Merge tweaks and configuration @@ -41,7 +41,7 @@ index 1e575fe..fa7e6df 100644 } } else { diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java -index 75e0714..7b933b8 100644 +index c81f673..abc39f1 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -970,6 +970,23 @@ public abstract class World implements IBlockAccess { @@ -92,5 +92,5 @@ index 7e79ba5..1545a61 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0008-More-Efficient-Chunk-Save-Queue.patch b/CraftBukkit-Patches/0008-More-Efficient-Chunk-Save-Queue.patch deleted file mode 100644 index 641bbc6..0000000 --- a/CraftBukkit-Patches/0008-More-Efficient-Chunk-Save-Queue.patch +++ /dev/null @@ -1,109 +0,0 @@ -From 6d797dbaf72c252361504a9c7b991a162876aa40 Mon Sep 17 00:00:00 2001 -From: md_5 -Date: Tue, 11 Jun 2013 12:09:45 +1000 -Subject: [PATCH] More Efficient Chunk Save Queue - -Optimizes the data structures behind the chunk save queue into ones more suitable for the type of data and access which they are used for. - -diff --git a/src/main/java/net/minecraft/server/ChunkRegionLoader.java b/src/main/java/net/minecraft/server/ChunkRegionLoader.java -index 044a09d..b7d09a9 100644 ---- a/src/main/java/net/minecraft/server/ChunkRegionLoader.java -+++ b/src/main/java/net/minecraft/server/ChunkRegionLoader.java -@@ -16,8 +16,11 @@ import org.apache.logging.log4j.Logger; - public class ChunkRegionLoader implements IChunkLoader, IAsyncChunkSaver { - - private static final Logger a = LogManager.getLogger(); -- private List b = Lists.newArrayList(); -- private Set c = Sets.newHashSet(); -+ // Spigot start -+ private java.util.LinkedHashMap pendingSaves = new java.util.LinkedHashMap(); -+ // private List b = Lists.newArrayList(); -+ // private Set c = Sets.newHashSet(); -+ // Spigot end - private Object d = new Object(); - private final File e; - -@@ -30,13 +33,11 @@ public class ChunkRegionLoader implements IChunkLoader, IAsyncChunkSaver { - ChunkCoordIntPair chunkcoordintpair = new ChunkCoordIntPair(i, j); - - synchronized (this.d) { -- if (this.c.contains(chunkcoordintpair)) { -- for (int k = 0; k < this.b.size(); ++k) { -- if (((PendingChunkToSave) this.b.get(k)).a.equals(chunkcoordintpair)) { -- return true; -- } -- } -- } -+ // Spigot start -+ if (pendingSaves.containsKey(chunkcoordintpair)) { -+ return true; -+ } -+ // Spigot end - } - - return RegionFileCache.a(this.e, i, j).chunkExists(i & 31, j & 31); -@@ -63,14 +64,12 @@ public class ChunkRegionLoader implements IChunkLoader, IAsyncChunkSaver { - Object object = this.d; - - synchronized (this.d) { -- if (this.c.contains(chunkcoordintpair)) { -- for (int k = 0; k < this.b.size(); ++k) { -- if (((ChunkRegionLoader.PendingChunkToSave) this.b.get(k)).a.equals(chunkcoordintpair)) { -- nbttagcompound = ((ChunkRegionLoader.PendingChunkToSave) this.b.get(k)).b; -- break; -- } -- } -+ // Spigot start -+ PendingChunkToSave pendingchunktosave = pendingSaves.get(chunkcoordintpair); -+ if (pendingchunktosave != null) { -+ nbttagcompound = pendingchunktosave.b; - } -+ // Spigot end - } - - if (nbttagcompound == null) { -@@ -149,17 +148,14 @@ public class ChunkRegionLoader implements IChunkLoader, IAsyncChunkSaver { - Object object = this.d; - - synchronized (this.d) { -- if (this.c.contains(chunkcoordintpair)) { -- for (int i = 0; i < this.b.size(); ++i) { -- if (((ChunkRegionLoader.PendingChunkToSave) this.b.get(i)).a.equals(chunkcoordintpair)) { -- this.b.set(i, new ChunkRegionLoader.PendingChunkToSave(chunkcoordintpair, nbttagcompound)); -- return; -- } -- } -+ // Spigot start -+ if (this.pendingSaves.put(chunkcoordintpair, new PendingChunkToSave(chunkcoordintpair, nbttagcompound)) != null) { -+ return; - } - -- this.b.add(new ChunkRegionLoader.PendingChunkToSave(chunkcoordintpair, nbttagcompound)); -- this.c.add(chunkcoordintpair); -+ // this.b.add(new ChunkRegionLoader.PendingChunkToSave(chunkcoordintpair, nbttagcompound)); -+ // this.c.add(chunkcoordintpair); -+ // Spigot end - FileIOThread.a().a(this); - } - } -@@ -169,12 +165,14 @@ public class ChunkRegionLoader implements IChunkLoader, IAsyncChunkSaver { - Object object = this.d; - - synchronized (this.d) { -- if (this.b.isEmpty()) { -+ // Spigot start -+ if (this.pendingSaves.isEmpty()) { - return false; - } - -- chunkregionloader_pendingchunktosave = (ChunkRegionLoader.PendingChunkToSave) this.b.remove(0); -- this.c.remove(chunkregionloader_pendingchunktosave.a); -+ chunkregionloader_pendingchunktosave = this.pendingSaves.values().iterator().next(); -+ this.pendingSaves.remove(chunkregionloader_pendingchunktosave.a); -+ // Spigot end - } - - if (chunkregionloader_pendingchunktosave != null) { --- -2.1.0 - diff --git a/CraftBukkit-Patches/0010-Async-Operation-Catching.patch b/CraftBukkit-Patches/0009-Async-Operation-Catching.patch similarity index 98% rename from CraftBukkit-Patches/0010-Async-Operation-Catching.patch rename to CraftBukkit-Patches/0009-Async-Operation-Catching.patch index 2f5df04..3b1f82c 100644 --- a/CraftBukkit-Patches/0010-Async-Operation-Catching.patch +++ b/CraftBukkit-Patches/0009-Async-Operation-Catching.patch @@ -1,4 +1,4 @@ -From ea3e297e50d376728766ad0cb08ba72ffb81e3a7 Mon Sep 17 00:00:00 2001 +From f1fbe73a279beb21f8f68866cd39e0938b58ab9c Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 25 Mar 2014 16:10:01 +1100 Subject: [PATCH] Async Operation Catching @@ -26,7 +26,7 @@ index 6b02059..66e099f 100644 public int a(Random random) { return 1; diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java -index 9973ff7..256953f 100644 +index 40ae494..2e81b7e 100644 --- a/src/main/java/net/minecraft/server/EntityLiving.java +++ b/src/main/java/net/minecraft/server/EntityLiving.java @@ -570,6 +570,7 @@ public abstract class EntityLiving extends Entity { @@ -78,7 +78,7 @@ index 5ef2be4..8d50e05 100644 this.trackedPlayers.remove(entityplayer); entityplayer.d(this.tracker); diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java -index 7b933b8..d238c81 100644 +index abc39f1..b4ed484 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -940,6 +940,7 @@ public abstract class World implements IBlockAccess { @@ -134,7 +134,7 @@ index 80fc5bf..441f8a3 100644 if (generate) { // Use the default variant of loadChunk when generate == true. diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -index c1879f4..37f04ad 100644 +index 9396b93..fa7b91c 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -214,6 +214,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { @@ -181,5 +181,5 @@ index 0000000..4b3aa85 + } +} -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0011-View-Distance.patch b/CraftBukkit-Patches/0010-View-Distance.patch similarity index 96% rename from CraftBukkit-Patches/0011-View-Distance.patch rename to CraftBukkit-Patches/0010-View-Distance.patch index ded785d..dd91f12 100644 --- a/CraftBukkit-Patches/0011-View-Distance.patch +++ b/CraftBukkit-Patches/0010-View-Distance.patch @@ -1,4 +1,4 @@ -From 82ace6763d2f76de660ec454ed803eb8ddefa14e Mon Sep 17 00:00:00 2001 +From d9fedfa532dd1f937fcea3a779a1fd0a2b9dce7f Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 23 Mar 2013 09:52:41 +1100 Subject: [PATCH] View Distance @@ -22,7 +22,7 @@ index 688d6f0..abb24c8 100644 public WorldServer a() { diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java -index 5fd3934..ea9e2fb 100644 +index 03cac6e..b245159 100644 --- a/src/main/java/net/minecraft/server/WorldServer.java +++ b/src/main/java/net/minecraft/server/WorldServer.java @@ -62,7 +62,7 @@ public class WorldServer extends World implements IAsyncTaskHandler { @@ -51,5 +51,5 @@ index 1545a61..6cc3a91 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0012-Spigot-Timings.patch b/CraftBukkit-Patches/0011-Spigot-Timings.patch similarity index 96% rename from CraftBukkit-Patches/0012-Spigot-Timings.patch rename to CraftBukkit-Patches/0011-Spigot-Timings.patch index 66d270c..8e215c1 100644 --- a/CraftBukkit-Patches/0012-Spigot-Timings.patch +++ b/CraftBukkit-Patches/0011-Spigot-Timings.patch @@ -1,4 +1,4 @@ -From 2b98747833a588469352c523a5b5dd56ddf789b7 Mon Sep 17 00:00:00 2001 +From 05dd86d1ddf919552e07ec557d26e55757fe4be6 Mon Sep 17 00:00:00 2001 From: Aikar Date: Thu, 10 Jan 2013 00:18:11 -0500 Subject: [PATCH] Spigot Timings @@ -56,10 +56,10 @@ index 9bd173b..74710f9 100644 } diff --git a/src/main/java/net/minecraft/server/ChunkRegionLoader.java b/src/main/java/net/minecraft/server/ChunkRegionLoader.java -index b7d09a9..5c0ab6c 100644 +index cfd28f1..ad989e6 100644 --- a/src/main/java/net/minecraft/server/ChunkRegionLoader.java +++ b/src/main/java/net/minecraft/server/ChunkRegionLoader.java -@@ -46,7 +46,9 @@ public class ChunkRegionLoader implements IChunkLoader, IAsyncChunkSaver { +@@ -41,7 +41,9 @@ public class ChunkRegionLoader implements IChunkLoader, IAsyncChunkSaver { // CraftBukkit start - Add async variant, provide compatibility public Chunk a(World world, int i, int j) throws IOException { @@ -69,7 +69,7 @@ index b7d09a9..5c0ab6c 100644 if (data != null) { Chunk chunk = (Chunk) data[0]; NBTTagCompound nbttagcompound = (NBTTagCompound) data[1]; -@@ -399,7 +401,7 @@ public class ChunkRegionLoader implements IChunkLoader, IAsyncChunkSaver { +@@ -379,7 +381,7 @@ public class ChunkRegionLoader implements IChunkLoader, IAsyncChunkSaver { public void loadEntities(Chunk chunk, NBTTagCompound nbttagcompound, World world) { // CraftBukkit end @@ -78,7 +78,7 @@ index b7d09a9..5c0ab6c 100644 NBTTagList nbttaglist1 = nbttagcompound.getList("Entities", 10); if (nbttaglist1 != null) { -@@ -425,7 +427,8 @@ public class ChunkRegionLoader implements IChunkLoader, IAsyncChunkSaver { +@@ -405,7 +407,8 @@ public class ChunkRegionLoader implements IChunkLoader, IAsyncChunkSaver { } } } @@ -88,7 +88,7 @@ index b7d09a9..5c0ab6c 100644 NBTTagList nbttaglist2 = nbttagcompound.getList("TileEntities", 10); if (nbttaglist2 != null) { -@@ -438,6 +441,8 @@ public class ChunkRegionLoader implements IChunkLoader, IAsyncChunkSaver { +@@ -418,6 +421,8 @@ public class ChunkRegionLoader implements IChunkLoader, IAsyncChunkSaver { } } } @@ -97,7 +97,7 @@ index b7d09a9..5c0ab6c 100644 if (nbttagcompound.hasKeyOfType("TileTicks", 9)) { NBTTagList nbttaglist3 = nbttagcompound.getList("TileTicks", 10); -@@ -457,6 +462,7 @@ public class ChunkRegionLoader implements IChunkLoader, IAsyncChunkSaver { +@@ -437,6 +442,7 @@ public class ChunkRegionLoader implements IChunkLoader, IAsyncChunkSaver { } } } @@ -106,7 +106,7 @@ index b7d09a9..5c0ab6c 100644 // return chunk; // CraftBukkit } diff --git a/src/main/java/net/minecraft/server/DedicatedServer.java b/src/main/java/net/minecraft/server/DedicatedServer.java -index 8bc6ad6..1e682e9 100644 +index fc5e8cf..3d5801c 100644 --- a/src/main/java/net/minecraft/server/DedicatedServer.java +++ b/src/main/java/net/minecraft/server/DedicatedServer.java @@ -20,6 +20,7 @@ import java.io.PrintStream; @@ -120,7 +120,7 @@ index 8bc6ad6..1e682e9 100644 @@ -369,6 +370,7 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer } - public void aN() { + public void aO() { + SpigotTimings.serverCommandTimer.startTiming(); // Spigot while (!this.l.isEmpty()) { ServerCommand servercommand = (ServerCommand) this.l.remove(0); @@ -132,7 +132,7 @@ index 8bc6ad6..1e682e9 100644 + SpigotTimings.serverCommandTimer.stopTiming(); // Spigot } - public boolean ad() { + public boolean ae() { diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java index d004df3..d3c7d1b 100644 --- a/src/main/java/net/minecraft/server/Entity.java @@ -171,7 +171,7 @@ index d004df3..d3c7d1b 100644 private void recalcPosition() { diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java -index 296ec31..1b11563 100644 +index 2e81b7e..0638f6f 100644 --- a/src/main/java/net/minecraft/server/EntityLiving.java +++ b/src/main/java/net/minecraft/server/EntityLiving.java @@ -23,6 +23,8 @@ import org.bukkit.event.entity.EntityRegainHealthEvent; @@ -242,7 +242,7 @@ index 296ec31..1b11563 100644 this.world.methodProfiler.b(); diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 611a623..af2e9bc 100644 +index 4393458..1cc4e47 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -46,6 +46,7 @@ import joptsimple.OptionSet; @@ -253,15 +253,15 @@ index 611a623..af2e9bc 100644 import org.bukkit.craftbukkit.util.Waitable; import org.bukkit.event.server.RemoteServerCommandEvent; import org.bukkit.event.world.WorldSaveEvent; -@@ -613,6 +614,7 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs - protected void y() {} +@@ -619,6 +620,7 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs + protected void z() {} - protected void z() throws ExceptionWorldConflict { // CraftBukkit - added throws + protected void A() throws ExceptionWorldConflict { // CraftBukkit - added throws + SpigotTimings.serverTickTimer.startTiming(); // Spigot long i = System.nanoTime(); ++this.ticks; -@@ -639,10 +641,12 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -645,10 +647,12 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs } if (autosavePeriod > 0 && this.ticks % autosavePeriod == 0) { // CraftBukkit @@ -274,7 +274,7 @@ index 611a623..af2e9bc 100644 } this.methodProfiler.a("tallying"); -@@ -659,6 +663,8 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -665,6 +669,8 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs this.methodProfiler.b(); this.methodProfiler.b(); @@ -282,8 +282,8 @@ index 611a623..af2e9bc 100644 + org.spigotmc.CustomTimingsHandler.tick(); // Spigot } - public void A() { -@@ -673,16 +679,23 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs + public void B() { +@@ -679,16 +685,23 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs this.methodProfiler.c("levels"); @@ -307,7 +307,7 @@ index 611a623..af2e9bc 100644 // Send time updates to everyone, it will get the right time from the world the player is in. if (this.ticks % 20 == 0) { for (int i = 0; i < this.getPlayerList().players.size(); ++i) { -@@ -690,6 +703,7 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -696,6 +709,7 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs entityplayer.playerConnection.sendPacket(new PacketPlayOutUpdateTime(entityplayer.world.getTime(), entityplayer.getPlayerTime(), entityplayer.world.getGameRules().getBoolean("doDaylightCycle"))); // Add support for per player time } } @@ -315,7 +315,7 @@ index 611a623..af2e9bc 100644 int i; -@@ -713,7 +727,9 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -719,7 +733,9 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs CrashReport crashreport; try { @@ -325,7 +325,7 @@ index 611a623..af2e9bc 100644 } catch (Throwable throwable) { crashreport = CrashReport.a(throwable, "Exception ticking world"); worldserver.a(crashreport); -@@ -721,7 +737,9 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -727,7 +743,9 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs } try { @@ -335,7 +335,7 @@ index 611a623..af2e9bc 100644 } catch (Throwable throwable1) { crashreport = CrashReport.a(throwable1, "Exception ticking world entities"); worldserver.a(crashreport); -@@ -730,7 +748,9 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -736,7 +754,9 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs this.methodProfiler.b(); this.methodProfiler.a("tracker"); @@ -345,12 +345,12 @@ index 611a623..af2e9bc 100644 this.methodProfiler.b(); this.methodProfiler.b(); // } // CraftBukkit -@@ -739,14 +759,20 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -745,14 +765,20 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs } this.methodProfiler.c("connection"); + SpigotTimings.connectionTimer.startTiming(); // Spigot - this.ap().c(); + this.aq().c(); + SpigotTimings.connectionTimer.stopTiming(); // Spigot this.methodProfiler.c("players"); + SpigotTimings.playerListTimer.startTiming(); // Spigot @@ -367,10 +367,10 @@ index 611a623..af2e9bc 100644 this.methodProfiler.b(); } diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java -index a295e61..eb977e1 100644 +index 2ed67e6..424ac34 100644 --- a/src/main/java/net/minecraft/server/PlayerConnection.java +++ b/src/main/java/net/minecraft/server/PlayerConnection.java -@@ -1067,6 +1067,7 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList +@@ -1063,6 +1063,7 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList // CraftBukkit end private void handleCommand(String s) { @@ -378,7 +378,7 @@ index a295e61..eb977e1 100644 // CraftBukkit start - whole method this.c.info(this.player.getName() + " issued server command: " + s); -@@ -1076,18 +1077,22 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList +@@ -1072,18 +1073,22 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList this.server.getPluginManager().callEvent(event); if (event.isCancelled()) { @@ -419,7 +419,7 @@ index d80bbaf..02c9250 100644 private static Map> f = Maps.newHashMap(); private static Map, String> g = Maps.newHashMap(); diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java -index d238c81..47778d1 100644 +index b4ed484..3e5933a 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -21,6 +21,7 @@ import org.bukkit.Bukkit; @@ -529,7 +529,7 @@ index d238c81..47778d1 100644 } diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java -index ea9e2fb..1d1ea9b 100644 +index b245159..fba6814 100644 --- a/src/main/java/net/minecraft/server/WorldServer.java +++ b/src/main/java/net/minecraft/server/WorldServer.java @@ -223,10 +223,13 @@ public class WorldServer extends World implements IAsyncTaskHandler { @@ -888,5 +888,5 @@ index 55db3ff..220e39a 100644 + // Spigot end } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0013-Fix-Mob-Spawning-Relative-to-View-Distance.patch b/CraftBukkit-Patches/0012-Fix-Mob-Spawning-Relative-to-View-Distance.patch similarity index 98% rename from CraftBukkit-Patches/0013-Fix-Mob-Spawning-Relative-to-View-Distance.patch rename to CraftBukkit-Patches/0012-Fix-Mob-Spawning-Relative-to-View-Distance.patch index 66faf03..db18c00 100644 --- a/CraftBukkit-Patches/0013-Fix-Mob-Spawning-Relative-to-View-Distance.patch +++ b/CraftBukkit-Patches/0012-Fix-Mob-Spawning-Relative-to-View-Distance.patch @@ -1,4 +1,4 @@ -From 1de46ca9b9cf24e5395870c44fbc8bde1888d324 Mon Sep 17 00:00:00 2001 +From 4d2e521609df2f20d5d1756066d443c9a1c9e800 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 21 Jun 2013 17:29:54 +1000 Subject: [PATCH] Fix Mob Spawning Relative to View Distance @@ -66,7 +66,7 @@ index f22e695..3d8d59a 100644 public boolean d(BlockPosition blockposition) { diff --git a/src/main/java/net/minecraft/server/SpawnerCreature.java b/src/main/java/net/minecraft/server/SpawnerCreature.java -index 1b9af34..aeb0a44 100644 +index cc1b347..3964e3f 100644 --- a/src/main/java/net/minecraft/server/SpawnerCreature.java +++ b/src/main/java/net/minecraft/server/SpawnerCreature.java @@ -19,6 +19,25 @@ public final class SpawnerCreature { @@ -160,5 +160,5 @@ index 6cc3a91..46249d7 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0014-Handle-Null-Tile-Entities.patch b/CraftBukkit-Patches/0013-Handle-Null-Tile-Entities.patch similarity index 90% rename from CraftBukkit-Patches/0014-Handle-Null-Tile-Entities.patch rename to CraftBukkit-Patches/0013-Handle-Null-Tile-Entities.patch index 3b4862c..99f1a0d 100644 --- a/CraftBukkit-Patches/0014-Handle-Null-Tile-Entities.patch +++ b/CraftBukkit-Patches/0013-Handle-Null-Tile-Entities.patch @@ -1,11 +1,11 @@ -From af2e7fe5737f5cb423b3467d68d2982c18e7152f Mon Sep 17 00:00:00 2001 +From b307f13c5fa5ce775d86513090bf31effd770a40 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 3 Feb 2013 09:20:19 +1100 Subject: [PATCH] Handle Null Tile Entities diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java -index 47778d1..1ada35c 100644 +index 3e5933a..380df75 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -1365,6 +1365,13 @@ public abstract class World implements IBlockAccess { @@ -23,5 +23,5 @@ index 47778d1..1ada35c 100644 if (!tileentity.x() && tileentity.t()) { BlockPosition blockposition = tileentity.getPosition(); -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0015-Entity-Activation-Range.patch b/CraftBukkit-Patches/0014-Entity-Activation-Range.patch similarity index 99% rename from CraftBukkit-Patches/0015-Entity-Activation-Range.patch rename to CraftBukkit-Patches/0014-Entity-Activation-Range.patch index 0953721..234661f 100644 --- a/CraftBukkit-Patches/0015-Entity-Activation-Range.patch +++ b/CraftBukkit-Patches/0014-Entity-Activation-Range.patch @@ -1,4 +1,4 @@ -From f1bfa6ab1613581aca6fa04da6012b40d1f6d1a0 Mon Sep 17 00:00:00 2001 +From 3986a3a267b59d1b45e2a8dac33e47354f074ef1 Mon Sep 17 00:00:00 2001 From: Aikar Date: Sun, 3 Feb 2013 05:10:21 -0500 Subject: [PATCH] Entity Activation Range @@ -178,7 +178,7 @@ index fa7e6df..65a03df 100644 // Spigot start double radius = world.spigotConfig.itemMerge; diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java -index 24aaec5..e90ff2f 100644 +index 0638f6f..f7ce391 100644 --- a/src/main/java/net/minecraft/server/EntityLiving.java +++ b/src/main/java/net/minecraft/server/EntityLiving.java @@ -89,6 +89,13 @@ public abstract class EntityLiving extends Entity { @@ -196,7 +196,7 @@ index 24aaec5..e90ff2f 100644 public void G() { this.damageEntity(DamageSource.OUT_OF_WORLD, Float.MAX_VALUE); diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java -index 1ada35c..38ebdbb 100644 +index 380df75..f82c0f9 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -1306,6 +1306,7 @@ public abstract class World implements IBlockAccess { @@ -547,5 +547,5 @@ index 46249d7..ed2836a 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0016-Metrics.patch b/CraftBukkit-Patches/0015-Metrics.patch similarity index 99% rename from CraftBukkit-Patches/0016-Metrics.patch rename to CraftBukkit-Patches/0015-Metrics.patch index 8067714..f22878f 100644 --- a/CraftBukkit-Patches/0016-Metrics.patch +++ b/CraftBukkit-Patches/0015-Metrics.patch @@ -1,4 +1,4 @@ -From 66597de8d72d0406c2197198d5e5fcdfa7f3bc82 Mon Sep 17 00:00:00 2001 +From f7aa249e67cd5daf82a35fbc0478ba59aac38ef7 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 23 Feb 2013 08:58:35 +1100 Subject: [PATCH] Metrics @@ -687,5 +687,5 @@ index 6837305..fdd4fe1 100644 static void readConfig(Class clazz, Object instance) -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0017-PlayerItemDamageEvent.patch b/CraftBukkit-Patches/0016-PlayerItemDamageEvent.patch similarity index 96% rename from CraftBukkit-Patches/0017-PlayerItemDamageEvent.patch rename to CraftBukkit-Patches/0016-PlayerItemDamageEvent.patch index 15bf037..4586037 100644 --- a/CraftBukkit-Patches/0017-PlayerItemDamageEvent.patch +++ b/CraftBukkit-Patches/0016-PlayerItemDamageEvent.patch @@ -1,4 +1,4 @@ -From b9f6f612efda2ede563c17125596cc5e54ff0e79 Mon Sep 17 00:00:00 2001 +From ce05d40e7bb517074413745ed2c76007e19f9208 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 4 Mar 2013 18:45:52 +1100 Subject: [PATCH] PlayerItemDamageEvent @@ -48,5 +48,5 @@ index 3752690..b51da0e 100644 --this.count; if (entityliving instanceof EntityHuman) { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0018-Prevent-NPE-in-CraftSign.patch b/CraftBukkit-Patches/0017-Prevent-NPE-in-CraftSign.patch similarity index 94% rename from CraftBukkit-Patches/0018-Prevent-NPE-in-CraftSign.patch rename to CraftBukkit-Patches/0017-Prevent-NPE-in-CraftSign.patch index aabacd7..5b49b40 100644 --- a/CraftBukkit-Patches/0018-Prevent-NPE-in-CraftSign.patch +++ b/CraftBukkit-Patches/0017-Prevent-NPE-in-CraftSign.patch @@ -1,4 +1,4 @@ -From 399e361d713bd3a7b8eba3728eca47825bb1436b Mon Sep 17 00:00:00 2001 +From 070fb153a784c543bef263e110b898153ec5a410 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 18 Mar 2013 20:01:44 +1100 Subject: [PATCH] Prevent NPE in CraftSign @@ -23,5 +23,5 @@ index 42a6f9a..43adfcc 100644 System.arraycopy(revertComponents(sign.lines), 0, lines, 0, lines.length); } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0019-Entity-Tracking-Ranges.patch b/CraftBukkit-Patches/0018-Entity-Tracking-Ranges.patch similarity index 98% rename from CraftBukkit-Patches/0019-Entity-Tracking-Ranges.patch rename to CraftBukkit-Patches/0018-Entity-Tracking-Ranges.patch index 6e315dc..ec55179 100644 --- a/CraftBukkit-Patches/0019-Entity-Tracking-Ranges.patch +++ b/CraftBukkit-Patches/0018-Entity-Tracking-Ranges.patch @@ -1,4 +1,4 @@ -From de781fce458bd94f7866fdb158b5fba13de13829 Mon Sep 17 00:00:00 2001 +From 1ede51990c49d26cdf03d07b30651253351fbc26 Mon Sep 17 00:00:00 2001 From: Aikar Date: Wed, 20 Feb 2013 11:58:47 -0500 Subject: [PATCH] Entity Tracking Ranges @@ -144,5 +144,5 @@ index 0000000..4bf4d2a + } +} -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0020-Thread-Naming-and-Tweaks.patch b/CraftBukkit-Patches/0019-Thread-Naming-and-Tweaks.patch similarity index 94% rename from CraftBukkit-Patches/0020-Thread-Naming-and-Tweaks.patch rename to CraftBukkit-Patches/0019-Thread-Naming-and-Tweaks.patch index 8710371..00f285e 100644 --- a/CraftBukkit-Patches/0020-Thread-Naming-and-Tweaks.patch +++ b/CraftBukkit-Patches/0019-Thread-Naming-and-Tweaks.patch @@ -1,4 +1,4 @@ -From 86b09d2c88797b0cd766b42cbe99bc9c550130f1 Mon Sep 17 00:00:00 2001 +From ac9d4469b570ec354dcd1de18efd608d5adb72b7 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 23 Apr 2013 11:50:27 +1000 Subject: [PATCH] Thread Naming and Tweaks @@ -19,5 +19,5 @@ index 8442ecb..93d8d42 100644 private CraftAsyncDebugger debugTail = debugHead; private static final int RECENT_TICKS; -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0021-Close-Unloaded-Save-Files.patch b/CraftBukkit-Patches/0020-Close-Unloaded-Save-Files.patch similarity index 97% rename from CraftBukkit-Patches/0021-Close-Unloaded-Save-Files.patch rename to CraftBukkit-Patches/0020-Close-Unloaded-Save-Files.patch index 2c5a8f4..c71b0a6 100644 --- a/CraftBukkit-Patches/0021-Close-Unloaded-Save-Files.patch +++ b/CraftBukkit-Patches/0020-Close-Unloaded-Save-Files.patch @@ -1,4 +1,4 @@ -From 19084b00141da1144834e53a13ae19eeb6025bfa Mon Sep 17 00:00:00 2001 +From 721126a58307ce4e03a21b7b2b3f3337d2913a32 Mon Sep 17 00:00:00 2001 From: Antony Riley Date: Wed, 27 Mar 2013 01:41:54 +0200 Subject: [PATCH] Close Unloaded Save Files @@ -54,5 +54,5 @@ index ed0c30c..58d52d8 100644 } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0022-Remove-o-Option.patch b/CraftBukkit-Patches/0021-Remove-o-Option.patch similarity index 91% rename from CraftBukkit-Patches/0022-Remove-o-Option.patch rename to CraftBukkit-Patches/0021-Remove-o-Option.patch index 79e53c6..a213988 100644 --- a/CraftBukkit-Patches/0022-Remove-o-Option.patch +++ b/CraftBukkit-Patches/0021-Remove-o-Option.patch @@ -1,4 +1,4 @@ -From 5ba03eacbb86f53d5367f4df5cae52d6c7d47fc6 Mon Sep 17 00:00:00 2001 +From ec8a71fafe7d11b9fc2a7e40e9b91c055390f2c8 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 19 May 2013 18:29:48 +1000 Subject: [PATCH] Remove -o Option @@ -19,5 +19,5 @@ index dbb329c..0549a0f 100644 } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0023-Recipe-Deconstruction.patch b/CraftBukkit-Patches/0022-Recipe-Deconstruction.patch similarity index 97% rename from CraftBukkit-Patches/0023-Recipe-Deconstruction.patch rename to CraftBukkit-Patches/0022-Recipe-Deconstruction.patch index 2e9e3d6..1bc87b6 100644 --- a/CraftBukkit-Patches/0023-Recipe-Deconstruction.patch +++ b/CraftBukkit-Patches/0022-Recipe-Deconstruction.patch @@ -1,4 +1,4 @@ -From d2104f7ad03dddaa13e03959f674738335702d85 Mon Sep 17 00:00:00 2001 +From 95511de518572ab8d52f51332c06bb67babbf0af Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 1 Jun 2013 16:34:38 +1000 Subject: [PATCH] Recipe Deconstruction @@ -67,5 +67,5 @@ index b13dcb7..aa0e9aa 100644 + // Spigot end } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0024-Implement-Arrow-API.patch b/CraftBukkit-Patches/0023-Implement-Arrow-API.patch similarity index 92% rename from CraftBukkit-Patches/0024-Implement-Arrow-API.patch rename to CraftBukkit-Patches/0023-Implement-Arrow-API.patch index 7d7622e..8815892 100644 --- a/CraftBukkit-Patches/0024-Implement-Arrow-API.patch +++ b/CraftBukkit-Patches/0023-Implement-Arrow-API.patch @@ -1,4 +1,4 @@ -From a17bb69d10a158dbc6eb6730fdba2c1d56e14bc0 Mon Sep 17 00:00:00 2001 +From 6abcfb10cc45520d7c7a0afda68cc24e5ddda18f Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 2 Jun 2013 15:16:05 +1000 Subject: [PATCH] Implement Arrow API @@ -27,5 +27,5 @@ index bf48e6e..ad489cc 100644 public Arrow.Spigot spigot() -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0025-Hopper-Customisations.patch b/CraftBukkit-Patches/0024-Hopper-Customisations.patch similarity index 98% rename from CraftBukkit-Patches/0025-Hopper-Customisations.patch rename to CraftBukkit-Patches/0024-Hopper-Customisations.patch index 0539781..b2b731c 100644 --- a/CraftBukkit-Patches/0025-Hopper-Customisations.patch +++ b/CraftBukkit-Patches/0024-Hopper-Customisations.patch @@ -1,4 +1,4 @@ -From 130aa064894ff26076d5878a79b7859a50bcfe60 Mon Sep 17 00:00:00 2001 +From 3ed10d5c7954889a72db5cf893bd75f9f6ecf196 Mon Sep 17 00:00:00 2001 From: erocs Date: Sun, 8 Sep 2013 12:06:15 -0700 Subject: [PATCH] Hopper Customisations @@ -121,5 +121,5 @@ index 6421bf2..956c628 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0026-Implement-SpawnerSpawnEvent.patch b/CraftBukkit-Patches/0025-Implement-SpawnerSpawnEvent.patch similarity index 97% rename from CraftBukkit-Patches/0026-Implement-SpawnerSpawnEvent.patch rename to CraftBukkit-Patches/0025-Implement-SpawnerSpawnEvent.patch index 5bc6b40..9b63bba 100644 --- a/CraftBukkit-Patches/0026-Implement-SpawnerSpawnEvent.patch +++ b/CraftBukkit-Patches/0025-Implement-SpawnerSpawnEvent.patch @@ -1,4 +1,4 @@ -From 3571d158bf5b247a039862f71f3e397e1cbc6630 Mon Sep 17 00:00:00 2001 +From 8f680acc75bec4ef8a27cdb4b71056d02355023f Mon Sep 17 00:00:00 2001 From: Andy Shulman Date: Mon, 15 Apr 2013 20:06:37 -0500 Subject: [PATCH] Implement SpawnerSpawnEvent. @@ -6,7 +6,7 @@ Subject: [PATCH] Implement SpawnerSpawnEvent. Adds BUKKIT-267 diff --git a/src/main/java/net/minecraft/server/MobSpawnerAbstract.java b/src/main/java/net/minecraft/server/MobSpawnerAbstract.java -index 8d668fa..41cfde8 100644 +index 056d447..0695fe2 100644 --- a/src/main/java/net/minecraft/server/MobSpawnerAbstract.java +++ b/src/main/java/net/minecraft/server/MobSpawnerAbstract.java @@ -4,7 +4,11 @@ import com.google.common.collect.Lists; @@ -99,5 +99,5 @@ index 10ac959..c5eca56 100644 */ public static PlayerBucketEmptyEvent callPlayerBucketEmptyEvent(EntityHuman who, int clickedX, int clickedY, int clickedZ, EnumDirection clickedFace, ItemStack itemInHand) { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0027-Firework-Meta-Crash-Fix.patch b/CraftBukkit-Patches/0026-Firework-Meta-Crash-Fix.patch similarity index 93% rename from CraftBukkit-Patches/0027-Firework-Meta-Crash-Fix.patch rename to CraftBukkit-Patches/0026-Firework-Meta-Crash-Fix.patch index e1b725d..4f1f0b9 100644 --- a/CraftBukkit-Patches/0027-Firework-Meta-Crash-Fix.patch +++ b/CraftBukkit-Patches/0026-Firework-Meta-Crash-Fix.patch @@ -1,4 +1,4 @@ -From 863d3be198da29ff4be6f1a696f9be5493ae0d02 Mon Sep 17 00:00:00 2001 +From 6e6fc1caba9b757166acd19bc230cbd2a56acb97 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 15 Jun 2013 21:34:48 +1000 Subject: [PATCH] Firework Meta Crash Fix @@ -27,5 +27,5 @@ index 0f7da6b..5a409ae 100644 } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0028-Allow-Disabling-of-Command-Logging.patch b/CraftBukkit-Patches/0027-Allow-Disabling-of-Command-Logging.patch similarity index 89% rename from CraftBukkit-Patches/0028-Allow-Disabling-of-Command-Logging.patch rename to CraftBukkit-Patches/0027-Allow-Disabling-of-Command-Logging.patch index 3b11da1..5a1dde8 100644 --- a/CraftBukkit-Patches/0028-Allow-Disabling-of-Command-Logging.patch +++ b/CraftBukkit-Patches/0027-Allow-Disabling-of-Command-Logging.patch @@ -1,14 +1,14 @@ -From ab69bfc5ab7eaa0ef4fb1f568a2b0d88181d122d Mon Sep 17 00:00:00 2001 +From 3dfd4fc0ed6077dabd6e87ab6efe7b3d6c1aae5e Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 21 Jun 2013 18:01:29 +1000 Subject: [PATCH] Allow Disabling of Command Logging diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java -index eb977e1..8e18c9f 100644 +index 424ac34..84391af 100644 --- a/src/main/java/net/minecraft/server/PlayerConnection.java +++ b/src/main/java/net/minecraft/server/PlayerConnection.java -@@ -1069,6 +1069,7 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList +@@ -1065,6 +1065,7 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList private void handleCommand(String s) { org.bukkit.craftbukkit.SpigotTimings.playerCommandTimer.startTiming(); // Spigot // CraftBukkit start - whole method @@ -32,5 +32,5 @@ index fdd4fe1..4e7d731 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0029-Allow-Disabling-of-Command-TabComplete.patch b/CraftBukkit-Patches/0028-Allow-Disabling-of-Command-TabComplete.patch similarity index 96% rename from CraftBukkit-Patches/0029-Allow-Disabling-of-Command-TabComplete.patch rename to CraftBukkit-Patches/0028-Allow-Disabling-of-Command-TabComplete.patch index a8ad4fa..ead6632 100644 --- a/CraftBukkit-Patches/0029-Allow-Disabling-of-Command-TabComplete.patch +++ b/CraftBukkit-Patches/0028-Allow-Disabling-of-Command-TabComplete.patch @@ -1,4 +1,4 @@ -From fbd2a42dafb35e0006af03366228b9f2420bda39 Mon Sep 17 00:00:00 2001 +From c5036b414c5ac505bf0687b9abf70d96de66c32f Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 21 Jun 2013 18:05:54 +1000 Subject: [PATCH] Allow Disabling of Command TabComplete @@ -49,5 +49,5 @@ index 4e7d731..0a6ab75 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0030-Configurable-Messages.patch b/CraftBukkit-Patches/0029-Configurable-Messages.patch similarity index 91% rename from CraftBukkit-Patches/0030-Configurable-Messages.patch rename to CraftBukkit-Patches/0029-Configurable-Messages.patch index 1c41a9f..1ab173c 100644 --- a/CraftBukkit-Patches/0030-Configurable-Messages.patch +++ b/CraftBukkit-Patches/0029-Configurable-Messages.patch @@ -1,29 +1,29 @@ -From 037faafb5dcab4a1ebd392c62279d0d8b580c13d Mon Sep 17 00:00:00 2001 +From 27d753cee3b24229e5624bf976d48fa7db2e9bfa Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 21 Jun 2013 19:21:58 +1000 Subject: [PATCH] Configurable Messages diff --git a/src/main/java/net/minecraft/server/HandshakeListener.java b/src/main/java/net/minecraft/server/HandshakeListener.java -index 98f40f1..8f421f3 100644 +index ef70306..b34a59a 100644 --- a/src/main/java/net/minecraft/server/HandshakeListener.java +++ b/src/main/java/net/minecraft/server/HandshakeListener.java @@ -62,11 +62,11 @@ public class HandshakeListener implements PacketHandshakingInListener { // CraftBukkit end if (packethandshakinginsetprotocol.b() > 47) { -- chatcomponenttext = new ChatComponentText("Outdated server! I\'m still on 1.8.3"); -+ chatcomponenttext = new ChatComponentText( java.text.MessageFormat.format( org.spigotmc.SpigotConfig.outdatedServerMessage, "1.8.3" ) ); // Spigot +- chatcomponenttext = new ChatComponentText("Outdated server! I\'m still on 1.8.4"); ++ chatcomponenttext = new ChatComponentText( java.text.MessageFormat.format( org.spigotmc.SpigotConfig.outdatedServerMessage, "1.8.4" ) ); // Spigot this.b.handle(new PacketLoginOutDisconnect(chatcomponenttext)); this.b.close(chatcomponenttext); } else if (packethandshakinginsetprotocol.b() < 47) { -- chatcomponenttext = new ChatComponentText("Outdated client! Please use 1.8.3"); -+ chatcomponenttext = new ChatComponentText( java.text.MessageFormat.format( org.spigotmc.SpigotConfig.outdatedClientMessage, "1.8.3" ) ); // Spigot +- chatcomponenttext = new ChatComponentText("Outdated client! Please use 1.8.4"); ++ chatcomponenttext = new ChatComponentText( java.text.MessageFormat.format( org.spigotmc.SpigotConfig.outdatedClientMessage, "1.8.4" ) ); // Spigot this.b.handle(new PacketLoginOutDisconnect(chatcomponenttext)); this.b.close(chatcomponenttext); } else { diff --git a/src/main/java/net/minecraft/server/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java -index ba7f18c..146e186 100644 +index cb84736..0278cfd 100644 --- a/src/main/java/net/minecraft/server/PlayerList.java +++ b/src/main/java/net/minecraft/server/PlayerList.java @@ -418,7 +418,7 @@ public abstract class PlayerList { @@ -37,8 +37,8 @@ index ba7f18c..146e186 100644 @@ -432,7 +432,7 @@ public abstract class PlayerList { } else { - // return this.players.size() >= this.maxPlayers ? "The server is full!" : null; - if (this.players.size() >= this.maxPlayers) { + // return this.players.size() >= this.maxPlayers && !this.f(gameprofile) ? "The server is full!" : null; + if (this.players.size() >= this.maxPlayers && !this.f(gameprofile)) { - event.disallow(PlayerLoginEvent.Result.KICK_FULL, "The server is full"); + event.disallow(PlayerLoginEvent.Result.KICK_FULL, org.spigotmc.SpigotConfig.serverFullMessage); // Spigot } @@ -103,5 +103,5 @@ index 0a6ab75..95bb141 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0031-Allow-Disabling-of-Random-Lighting-Updates.patch b/CraftBukkit-Patches/0030-Allow-Disabling-of-Random-Lighting-Updates.patch similarity index 95% rename from CraftBukkit-Patches/0031-Allow-Disabling-of-Random-Lighting-Updates.patch rename to CraftBukkit-Patches/0030-Allow-Disabling-of-Random-Lighting-Updates.patch index 6b38016..3d643d8 100644 --- a/CraftBukkit-Patches/0031-Allow-Disabling-of-Random-Lighting-Updates.patch +++ b/CraftBukkit-Patches/0030-Allow-Disabling-of-Random-Lighting-Updates.patch @@ -1,4 +1,4 @@ -From 0f6874fc64b8c59546c8feb06ac4b55406e7c870 Mon Sep 17 00:00:00 2001 +From a5f3fdc2728151d8feb670f039ee8f12d3965094 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 22 Jun 2013 16:12:02 +1000 Subject: [PATCH] Allow Disabling of Random Lighting Updates @@ -18,7 +18,7 @@ index 3d8d59a..3e72a01 100644 } diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java -index 38ebdbb..51db92b 100644 +index f82c0f9..a08b401 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -2090,7 +2090,7 @@ public abstract class World implements IBlockAccess { @@ -47,5 +47,5 @@ index 956c628..8868ea3 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0032-Properly-Close-Inventories.patch b/CraftBukkit-Patches/0031-Properly-Close-Inventories.patch similarity index 97% rename from CraftBukkit-Patches/0032-Properly-Close-Inventories.patch rename to CraftBukkit-Patches/0031-Properly-Close-Inventories.patch index df68a1b..d3b5fab 100644 --- a/CraftBukkit-Patches/0032-Properly-Close-Inventories.patch +++ b/CraftBukkit-Patches/0031-Properly-Close-Inventories.patch @@ -1,4 +1,4 @@ -From f9b3ce359dec5ce732e67d97a11902a97d07ccd7 Mon Sep 17 00:00:00 2001 +From a79c65358468bef6a3b73c0704727e9bfbcb7a66 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 27 Jun 2013 17:26:09 +1000 Subject: [PATCH] Properly Close Inventories @@ -65,5 +65,5 @@ index 712018a..17b5714 100644 super.c(i); } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0033-Disallow-Interaction-With-Self.patch b/CraftBukkit-Patches/0032-Disallow-Interaction-With-Self.patch similarity index 76% rename from CraftBukkit-Patches/0033-Disallow-Interaction-With-Self.patch rename to CraftBukkit-Patches/0032-Disallow-Interaction-With-Self.patch index 6342a85..055d5b4 100644 --- a/CraftBukkit-Patches/0033-Disallow-Interaction-With-Self.patch +++ b/CraftBukkit-Patches/0032-Disallow-Interaction-With-Self.patch @@ -1,27 +1,27 @@ -From d4e1a324eb84acc9fc1b3e967292ee784beae6bf Mon Sep 17 00:00:00 2001 +From 5b6b5953ac1e6b01b07f1759de74402c18ce9985 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 28 Jun 2013 19:52:54 +1000 Subject: [PATCH] Disallow Interaction With Self diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java -index 8e18c9f..2786399 100644 +index 84391af..4fa290c 100644 --- a/src/main/java/net/minecraft/server/PlayerConnection.java +++ b/src/main/java/net/minecraft/server/PlayerConnection.java -@@ -1204,6 +1204,13 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList +@@ -1200,6 +1200,13 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList PlayerConnectionUtils.ensureMainThread(packetplayinuseentity, this, this.player.u()); WorldServer worldserver = this.minecraftServer.getWorldServer(this.player.dimension); Entity entity = packetplayinuseentity.a((World) worldserver); + // Spigot Start -+ if ( entity == player && !player.v() ) // RENAME ++ if ( entity == player && !player.isSpectator() ) + { + disconnect( "Cannot interact with self!" ); + return; + } + // Spigot End - this.player.z(); + this.player.resetIdleTimer(); if (entity != null) { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0034-Entity-Mount-and-Dismount-Events.patch b/CraftBukkit-Patches/0033-Entity-Mount-and-Dismount-Events.patch similarity index 96% rename from CraftBukkit-Patches/0034-Entity-Mount-and-Dismount-Events.patch rename to CraftBukkit-Patches/0033-Entity-Mount-and-Dismount-Events.patch index 0e6c78c..a3e3aee 100644 --- a/CraftBukkit-Patches/0034-Entity-Mount-and-Dismount-Events.patch +++ b/CraftBukkit-Patches/0033-Entity-Mount-and-Dismount-Events.patch @@ -1,4 +1,4 @@ -From bf4b8c82cbefc7486951a102c970175a9ab3cf42 Mon Sep 17 00:00:00 2001 +From 0a8a5051bd17ec33126f3ff7c71fdca402b46d27 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 2 Jul 2013 20:32:49 +1000 Subject: [PATCH] Entity Mount and Dismount Events @@ -36,5 +36,5 @@ index ebdcaab..5cf3833 100644 this.vehicle.passenger = null; } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0035-Prevent-Ghost-Players-Caused-by-Plugins.patch b/CraftBukkit-Patches/0034-Prevent-Ghost-Players-Caused-by-Plugins.patch similarity index 91% rename from CraftBukkit-Patches/0035-Prevent-Ghost-Players-Caused-by-Plugins.patch rename to CraftBukkit-Patches/0034-Prevent-Ghost-Players-Caused-by-Plugins.patch index a6c3651..d80b53e 100644 --- a/CraftBukkit-Patches/0035-Prevent-Ghost-Players-Caused-by-Plugins.patch +++ b/CraftBukkit-Patches/0034-Prevent-Ghost-Players-Caused-by-Plugins.patch @@ -1,4 +1,4 @@ -From 3d9e77b93341a7b7b6a37548cb8dcf1352289344 Mon Sep 17 00:00:00 2001 +From a08a33d56eda8fe5b45e66314979bed9669cec66 Mon Sep 17 00:00:00 2001 From: Alex Ciuba Date: Tue, 11 Jun 2013 15:23:03 -0400 Subject: [PATCH] Prevent Ghost Players Caused by Plugins @@ -6,7 +6,7 @@ Subject: [PATCH] Prevent Ghost Players Caused by Plugins Check if the player is still connected after firing event. Fixes BUKKIT-4327 diff --git a/src/main/java/net/minecraft/server/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java -index 146e186..38c904c 100644 +index 0278cfd..7b2d8d1 100644 --- a/src/main/java/net/minecraft/server/PlayerList.java +++ b/src/main/java/net/minecraft/server/PlayerList.java @@ -548,6 +548,11 @@ public abstract class PlayerList { @@ -22,5 +22,5 @@ index 146e186..38c904c 100644 location = respawnEvent.getRespawnLocation(); entityplayer.reset(); -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0036-Plug-World-Unload-Memory-Leak.patch b/CraftBukkit-Patches/0035-Plug-World-Unload-Memory-Leak.patch similarity index 92% rename from CraftBukkit-Patches/0036-Plug-World-Unload-Memory-Leak.patch rename to CraftBukkit-Patches/0035-Plug-World-Unload-Memory-Leak.patch index bfbe787..27b7c25 100644 --- a/CraftBukkit-Patches/0036-Plug-World-Unload-Memory-Leak.patch +++ b/CraftBukkit-Patches/0035-Plug-World-Unload-Memory-Leak.patch @@ -1,4 +1,4 @@ -From c5379e4dbba8cc9843f13fcc1789a79c9c49708d Mon Sep 17 00:00:00 2001 +From 0036e4c68ff2be406d4cd8baaca791c1ceb11be2 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 3 Aug 2013 19:02:59 +1000 Subject: [PATCH] Plug World Unload Memory Leak @@ -18,5 +18,5 @@ index 125cefe..6a7e7b3 100644 private boolean a(World world, BlockPosition blockposition, boolean flag) { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0037-Player-Collision-API.patch b/CraftBukkit-Patches/0036-Player-Collision-API.patch similarity index 94% rename from CraftBukkit-Patches/0037-Player-Collision-API.patch rename to CraftBukkit-Patches/0036-Player-Collision-API.patch index 7e424fe..44625dc 100644 --- a/CraftBukkit-Patches/0037-Player-Collision-API.patch +++ b/CraftBukkit-Patches/0036-Player-Collision-API.patch @@ -1,11 +1,11 @@ -From 68cfae5df64b4d24920ffe1eb8cc3077be5e7b9b Mon Sep 17 00:00:00 2001 +From 2c358306a438d0788be1ea76c8d2506af0339b7c Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 3 Aug 2013 19:27:07 +1000 Subject: [PATCH] Player Collision API diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java -index 55340ab..96ed585 100644 +index 4012570..32dd2e1 100644 --- a/src/main/java/net/minecraft/server/EntityHuman.java +++ b/src/main/java/net/minecraft/server/EntityHuman.java @@ -427,6 +427,7 @@ public abstract class EntityHuman extends EntityLiving { @@ -25,7 +25,7 @@ index 55340ab..96ed585 100644 } diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java -index bbae608..c6244a5 100644 +index f7ce391..9cd8e9b 100644 --- a/src/main/java/net/minecraft/server/EntityLiving.java +++ b/src/main/java/net/minecraft/server/EntityLiving.java @@ -1674,7 +1674,7 @@ public abstract class EntityLiving extends Entity { @@ -38,7 +38,7 @@ index bbae608..c6244a5 100644 Entity entity = (Entity) list.get(i); diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java -index aefed46..657f3f5 100644 +index d356e7e..1fd636c 100644 --- a/src/main/java/net/minecraft/server/EntityPlayer.java +++ b/src/main/java/net/minecraft/server/EntityPlayer.java @@ -62,6 +62,21 @@ public class EntityPlayer extends EntityHuman implements ICrafting { @@ -64,7 +64,7 @@ index aefed46..657f3f5 100644 public EntityPlayer(MinecraftServer minecraftserver, WorldServer worldserver, GameProfile gameprofile, PlayerInteractManager playerinteractmanager) { super(worldserver, gameprofile); diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -index 37f04ad..1464b71 100644 +index fa7b91c..671b7d2 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -1318,6 +1318,19 @@ public class CraftPlayer extends CraftHumanEntity implements Player { @@ -88,5 +88,5 @@ index 37f04ad..1464b71 100644 public Player.Spigot spigot() -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0038-Fully-Disable-Snooper-When-Not-Required.patch b/CraftBukkit-Patches/0037-Fully-Disable-Snooper-When-Not-Required.patch similarity index 84% rename from CraftBukkit-Patches/0038-Fully-Disable-Snooper-When-Not-Required.patch rename to CraftBukkit-Patches/0037-Fully-Disable-Snooper-When-Not-Required.patch index baad609..16847e1 100644 --- a/CraftBukkit-Patches/0038-Fully-Disable-Snooper-When-Not-Required.patch +++ b/CraftBukkit-Patches/0037-Fully-Disable-Snooper-When-Not-Required.patch @@ -1,14 +1,14 @@ -From 4def204e17258bdd3fda7a5d062912a00969ed21 Mon Sep 17 00:00:00 2001 +From a13398ce78acf3168b87dca55bbc1f09e98d9c13 Mon Sep 17 00:00:00 2001 From: agentk20 Date: Sat, 3 Aug 2013 19:28:48 +1000 Subject: [PATCH] Fully Disable Snooper When Not Required diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index af2e9bc..7f70a3c 100644 +index 1cc4e47..a0634f8 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -653,11 +653,11 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -659,11 +659,11 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs this.h[this.ticks % 100] = System.nanoTime() - i; this.methodProfiler.b(); this.methodProfiler.a("snooper"); @@ -23,5 +23,5 @@ index af2e9bc..7f70a3c 100644 } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0039-Add-Getter-for-Entity-Invulnerability.patch b/CraftBukkit-Patches/0038-Add-Getter-for-Entity-Invulnerability.patch similarity index 92% rename from CraftBukkit-Patches/0039-Add-Getter-for-Entity-Invulnerability.patch rename to CraftBukkit-Patches/0038-Add-Getter-for-Entity-Invulnerability.patch index a4be17d..d6fd72d 100644 --- a/CraftBukkit-Patches/0039-Add-Getter-for-Entity-Invulnerability.patch +++ b/CraftBukkit-Patches/0038-Add-Getter-for-Entity-Invulnerability.patch @@ -1,4 +1,4 @@ -From 570225b4711c17a964b278632338a943262f9719 Mon Sep 17 00:00:00 2001 +From 36684b471f15cbc884e2ffadcaf4939ca4b7b11f Mon Sep 17 00:00:00 2001 From: DerFlash Date: Sat, 3 Aug 2013 19:53:48 +1000 Subject: [PATCH] Add Getter for Entity Invulnerability @@ -21,5 +21,5 @@ index 7a9b11c..9df27e3 100644 public Spigot spigot() -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0040-Cap-Minimum-Player-Speed.patch b/CraftBukkit-Patches/0039-Cap-Minimum-Player-Speed.patch similarity index 92% rename from CraftBukkit-Patches/0040-Cap-Minimum-Player-Speed.patch rename to CraftBukkit-Patches/0039-Cap-Minimum-Player-Speed.patch index d6dda0a..8224dc8 100644 --- a/CraftBukkit-Patches/0040-Cap-Minimum-Player-Speed.patch +++ b/CraftBukkit-Patches/0039-Cap-Minimum-Player-Speed.patch @@ -1,11 +1,11 @@ -From beee189a8992143e0c6d086dbb3591b57fd0c12a Mon Sep 17 00:00:00 2001 +From 2fb345e4d4a21458d0ca773fc34ee524f4c8eb81 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 5 Aug 2013 20:17:20 +1000 Subject: [PATCH] Cap Minimum Player Speed diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -index 1464b71..ad8d2d1 100644 +index 671b7d2..5136adf 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -1182,7 +1182,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { @@ -27,5 +27,5 @@ index 1464b71..ad8d2d1 100644 } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0041-Update-Inventory-and-Health-for-PlayerConsumeItemEve.patch b/CraftBukkit-Patches/0040-Update-Inventory-and-Health-for-PlayerConsumeItemEve.patch similarity index 91% rename from CraftBukkit-Patches/0041-Update-Inventory-and-Health-for-PlayerConsumeItemEve.patch rename to CraftBukkit-Patches/0040-Update-Inventory-and-Health-for-PlayerConsumeItemEve.patch index 0e976f3..9ef93c4 100644 --- a/CraftBukkit-Patches/0041-Update-Inventory-and-Health-for-PlayerConsumeItemEve.patch +++ b/CraftBukkit-Patches/0040-Update-Inventory-and-Health-for-PlayerConsumeItemEve.patch @@ -1,11 +1,11 @@ -From a26c1ec440045d300f1fc7ad93dd2dcb33947be3 Mon Sep 17 00:00:00 2001 +From c58898dd419d22d44ad3d407eadd11262917522d Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 14 Sep 2013 10:16:38 +1000 Subject: [PATCH] Update Inventory and Health for PlayerConsumeItemEvent diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java -index 96ed585..2004d67 100644 +index 32dd2e1..51f196a 100644 --- a/src/main/java/net/minecraft/server/EntityHuman.java +++ b/src/main/java/net/minecraft/server/EntityHuman.java @@ -300,6 +300,10 @@ public abstract class EntityHuman extends EntityLiving { @@ -20,5 +20,5 @@ index 96ed585..2004d67 100644 return; } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0042-Call-EntityChangeBlockEvent-for-Fire-Arrows-hitting-.patch b/CraftBukkit-Patches/0041-Call-EntityChangeBlockEvent-for-Fire-Arrows-hitting-.patch similarity index 94% rename from CraftBukkit-Patches/0042-Call-EntityChangeBlockEvent-for-Fire-Arrows-hitting-.patch rename to CraftBukkit-Patches/0041-Call-EntityChangeBlockEvent-for-Fire-Arrows-hitting-.patch index 8c9dabd..4f293cd 100644 --- a/CraftBukkit-Patches/0042-Call-EntityChangeBlockEvent-for-Fire-Arrows-hitting-.patch +++ b/CraftBukkit-Patches/0041-Call-EntityChangeBlockEvent-for-Fire-Arrows-hitting-.patch @@ -1,4 +1,4 @@ -From a46fe8cad440e523c65e214bab8ccdb10caf8183 Mon Sep 17 00:00:00 2001 +From b1984765de72f5464d00e8041ba7244daf960397 Mon Sep 17 00:00:00 2001 From: BlackHole Date: Tue, 16 Jul 2013 22:34:50 +0200 Subject: [PATCH] Call EntityChangeBlockEvent for Fire Arrows hitting TNT @@ -22,5 +22,5 @@ index f15b199..40c0a87 100644 world.setAir(blockposition); } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0043-Allow-Disabling-of-1.6.3-Structure-Saving.patch b/CraftBukkit-Patches/0042-Allow-Disabling-of-1.6.3-Structure-Saving.patch similarity index 96% rename from CraftBukkit-Patches/0043-Allow-Disabling-of-1.6.3-Structure-Saving.patch rename to CraftBukkit-Patches/0042-Allow-Disabling-of-1.6.3-Structure-Saving.patch index b88b7d8..e500410 100644 --- a/CraftBukkit-Patches/0043-Allow-Disabling-of-1.6.3-Structure-Saving.patch +++ b/CraftBukkit-Patches/0042-Allow-Disabling-of-1.6.3-Structure-Saving.patch @@ -1,4 +1,4 @@ -From 4db0facbad643a7db5ec75b7d0538a436078a10a Mon Sep 17 00:00:00 2001 +From df701f7e9d4f96e779b7a928cfa5600f63475886 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 21 Sep 2013 12:33:09 +1000 Subject: [PATCH] Allow Disabling of 1.6.3 Structure Saving @@ -46,5 +46,5 @@ index 8868ea3..0d5c9d0 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0044-Item-Despawn-Rate.patch b/CraftBukkit-Patches/0043-Item-Despawn-Rate.patch similarity index 95% rename from CraftBukkit-Patches/0044-Item-Despawn-Rate.patch rename to CraftBukkit-Patches/0043-Item-Despawn-Rate.patch index a0290a0..f2a9f80 100644 --- a/CraftBukkit-Patches/0044-Item-Despawn-Rate.patch +++ b/CraftBukkit-Patches/0043-Item-Despawn-Rate.patch @@ -1,4 +1,4 @@ -From 4dc98a7a9954aa33ee61797408d4ece977c0053c Mon Sep 17 00:00:00 2001 +From d1c7dec33fba2fb2a07abf7d74c239e4f20e58b8 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 22 Sep 2013 19:10:53 +1000 Subject: [PATCH] Item Despawn Rate @@ -34,5 +34,5 @@ index 0d5c9d0..a5786ea 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0045-Don-t-Special-Case-X-Move-Value.patch b/CraftBukkit-Patches/0044-Don-t-Special-Case-X-Move-Value.patch similarity index 95% rename from CraftBukkit-Patches/0045-Don-t-Special-Case-X-Move-Value.patch rename to CraftBukkit-Patches/0044-Don-t-Special-Case-X-Move-Value.patch index d94b4b5..1fb4297 100644 --- a/CraftBukkit-Patches/0045-Don-t-Special-Case-X-Move-Value.patch +++ b/CraftBukkit-Patches/0044-Don-t-Special-Case-X-Move-Value.patch @@ -1,11 +1,11 @@ -From ea79c836f34f613e75e1d40a5359210125ab3ae0 Mon Sep 17 00:00:00 2001 +From 1f4be3eb66fa4ad635fd29c339d43115d3369577 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 6 Oct 2013 17:36:28 +1100 Subject: [PATCH] Don't Special Case X Move Value diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java -index 2786399..a1341a7 100644 +index 7236d36..f965946 100644 --- a/src/main/java/net/minecraft/server/PlayerConnection.java +++ b/src/main/java/net/minecraft/server/PlayerConnection.java @@ -109,6 +109,7 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList @@ -45,5 +45,5 @@ index 2786399..a1341a7 100644 PlayerMoveEvent event = new PlayerMoveEvent(player, from, to); this.server.getPluginManager().callEvent(event); -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0046-Implement-respawn-API.patch b/CraftBukkit-Patches/0045-Implement-respawn-API.patch similarity index 90% rename from CraftBukkit-Patches/0046-Implement-respawn-API.patch rename to CraftBukkit-Patches/0045-Implement-respawn-API.patch index 6278bc6..b3cdd55 100644 --- a/CraftBukkit-Patches/0046-Implement-respawn-API.patch +++ b/CraftBukkit-Patches/0045-Implement-respawn-API.patch @@ -1,11 +1,11 @@ -From 1078ef77535c4d6446133563451413aa0d614575 Mon Sep 17 00:00:00 2001 +From 34ce2fb1acc2f55ff365ac51faa4f6ef202a7997 Mon Sep 17 00:00:00 2001 From: ninja- Date: Tue, 8 Oct 2013 14:34:49 +0200 Subject: [PATCH] Implement respawn API. diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -index ad8d2d1..d606824 100644 +index 5136adf..a5b7b75 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -1331,6 +1331,15 @@ public class CraftPlayer extends CraftHumanEntity implements Player { @@ -25,5 +25,5 @@ index ad8d2d1..d606824 100644 public Player.Spigot spigot() -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0047-Arrow-Despawn-Rate.patch b/CraftBukkit-Patches/0046-Arrow-Despawn-Rate.patch similarity index 95% rename from CraftBukkit-Patches/0047-Arrow-Despawn-Rate.patch rename to CraftBukkit-Patches/0046-Arrow-Despawn-Rate.patch index 9df81d0..cf39903 100644 --- a/CraftBukkit-Patches/0047-Arrow-Despawn-Rate.patch +++ b/CraftBukkit-Patches/0046-Arrow-Despawn-Rate.patch @@ -1,4 +1,4 @@ -From c197a85d77fe530ec157f29f592865af3db2e28d Mon Sep 17 00:00:00 2001 +From 67f884819439a51b10a77eeb39c3a44ff12354df Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 14 Oct 2013 19:20:10 +1100 Subject: [PATCH] Arrow Despawn Rate @@ -34,5 +34,5 @@ index a5786ea..af0c4b2 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0048-Fix-packed-ice-generation.patch b/CraftBukkit-Patches/0047-Fix-packed-ice-generation.patch similarity index 97% rename from CraftBukkit-Patches/0048-Fix-packed-ice-generation.patch rename to CraftBukkit-Patches/0047-Fix-packed-ice-generation.patch index 56046e8..0857f47 100644 --- a/CraftBukkit-Patches/0048-Fix-packed-ice-generation.patch +++ b/CraftBukkit-Patches/0047-Fix-packed-ice-generation.patch @@ -1,4 +1,4 @@ -From 3fea6f77514417d13d3172eb4390c5f96de69d90 Mon Sep 17 00:00:00 2001 +From b60d99eed5bc5e599fb908aaf00a26e5456c4a38 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 1 Dec 2013 17:52:14 +1100 Subject: [PATCH] Fix packed ice generation @@ -34,5 +34,5 @@ index dcd085a..3d08a82 100644 --l1; if (l1 <= 0) { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0049-Watchdog-Thread.patch b/CraftBukkit-Patches/0048-Watchdog-Thread.patch similarity index 96% rename from CraftBukkit-Patches/0049-Watchdog-Thread.patch rename to CraftBukkit-Patches/0048-Watchdog-Thread.patch index e39c739..1b4e137 100644 --- a/CraftBukkit-Patches/0049-Watchdog-Thread.patch +++ b/CraftBukkit-Patches/0048-Watchdog-Thread.patch @@ -1,27 +1,27 @@ -From 9d316ba709ca5eda5977fa6caa7ee8362fed3f2b Mon Sep 17 00:00:00 2001 +From 7e4e39b4753cc3b320d449991267f354ffd29eb4 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 5 Aug 2014 17:20:19 +0100 Subject: [PATCH] Watchdog Thread. diff --git a/src/main/java/net/minecraft/server/DedicatedServer.java b/src/main/java/net/minecraft/server/DedicatedServer.java -index 1e682e9..ae9e255 100644 +index 3d5801c..33b69c1 100644 --- a/src/main/java/net/minecraft/server/DedicatedServer.java +++ b/src/main/java/net/minecraft/server/DedicatedServer.java @@ -271,7 +271,7 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer } // CraftBukkit end -- if (this.aR() > 0L) { -+ if (false && this.aR() > 0L) { // Spigot - disable +- if (this.aS() > 0L) { ++ if (false && this.aS() > 0L) { // Spigot - disable Thread thread1 = new Thread(new ThreadWatchdog(this)); thread1.setName("Server Watchdog"); diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 7f70a3c..b5cb217 100644 +index a0634f8..270d318 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -563,6 +563,7 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -569,6 +569,7 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs this.a(crashreport); } finally { try { @@ -29,7 +29,7 @@ index 7f70a3c..b5cb217 100644 this.isStopped = true; this.stop(); } catch (Throwable throwable1) { -@@ -663,6 +664,7 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -669,6 +670,7 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs this.methodProfiler.b(); this.methodProfiler.b(); @@ -314,5 +314,5 @@ index 0000000..de08ad6 + } +} -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0050-Clear-Flower-Pot-on-Drop.patch b/CraftBukkit-Patches/0049-Clear-Flower-Pot-on-Drop.patch similarity index 91% rename from CraftBukkit-Patches/0050-Clear-Flower-Pot-on-Drop.patch rename to CraftBukkit-Patches/0049-Clear-Flower-Pot-on-Drop.patch index 4b0ccc5..4026348 100644 --- a/CraftBukkit-Patches/0050-Clear-Flower-Pot-on-Drop.patch +++ b/CraftBukkit-Patches/0049-Clear-Flower-Pot-on-Drop.patch @@ -1,4 +1,4 @@ -From bd63427a6f92101ddffc41dc923144b9802cd5a8 Mon Sep 17 00:00:00 2001 +From 7296edaa1cb0aed224ca1236d4a1a6bdb38a17fb Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 3 Dec 2013 11:07:48 +1100 Subject: [PATCH] Clear Flower Pot on Drop @@ -17,5 +17,5 @@ index fd77047..ce46138 100644 super.remove(world, blockposition, iblockdata); -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0051-Fix-some-chunks-not-being-sent-to-the-client.patch b/CraftBukkit-Patches/0050-Fix-some-chunks-not-being-sent-to-the-client.patch similarity index 94% rename from CraftBukkit-Patches/0051-Fix-some-chunks-not-being-sent-to-the-client.patch rename to CraftBukkit-Patches/0050-Fix-some-chunks-not-being-sent-to-the-client.patch index 7d83905..0bf115e 100644 --- a/CraftBukkit-Patches/0051-Fix-some-chunks-not-being-sent-to-the-client.patch +++ b/CraftBukkit-Patches/0050-Fix-some-chunks-not-being-sent-to-the-client.patch @@ -1,4 +1,4 @@ -From bd7c015caedbf1629a239f71d5145902213094d6 Mon Sep 17 00:00:00 2001 +From f4f1f5df831c99edd7cb8546ac56bd4d75909655 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Mon, 2 Dec 2013 23:42:09 +0000 Subject: [PATCH] Fix some chunks not being sent to the client @@ -26,5 +26,5 @@ index 7e56837..5208dbc 100644 public ChunkCoordIntPair j() { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0052-Fix-Broken-Async-Chat.patch b/CraftBukkit-Patches/0051-Fix-Broken-Async-Chat.patch similarity index 95% rename from CraftBukkit-Patches/0052-Fix-Broken-Async-Chat.patch rename to CraftBukkit-Patches/0051-Fix-Broken-Async-Chat.patch index 602e71d..a98862c 100644 --- a/CraftBukkit-Patches/0052-Fix-Broken-Async-Chat.patch +++ b/CraftBukkit-Patches/0051-Fix-Broken-Async-Chat.patch @@ -1,4 +1,4 @@ -From 651e0447c43452c4d80b1d7d379ce874488e80a1 Mon Sep 17 00:00:00 2001 +From c0112295cbbcacd4c9b4ff1a64ac61de98b2778d Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 5 Dec 2013 13:55:53 +1100 Subject: [PATCH] Fix Broken Async Chat @@ -35,5 +35,5 @@ index 0ab90f3..18358b4 100644 } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0053-Orebfuscator.patch b/CraftBukkit-Patches/0052-Orebfuscator.patch similarity index 99% rename from CraftBukkit-Patches/0053-Orebfuscator.patch rename to CraftBukkit-Patches/0052-Orebfuscator.patch index 1281a5d..7b0a2fb 100644 --- a/CraftBukkit-Patches/0053-Orebfuscator.patch +++ b/CraftBukkit-Patches/0052-Orebfuscator.patch @@ -1,4 +1,4 @@ -From 627c92006e29f83d04674a54f5cb603d4a94c0fb Mon Sep 17 00:00:00 2001 +From 87928bb1ce8d5547d586ec23cbf91ea502e22f99 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 16 May 2013 18:51:05 +1000 Subject: [PATCH] Orebfuscator @@ -91,7 +91,7 @@ index 0301fba..7a84a95 100644 public void a(BlockPosition blockposition) { diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java -index 51db92b..c1789a0 100644 +index a08b401..e9211fe 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -497,6 +497,7 @@ public abstract class World implements IBlockAccess { @@ -410,5 +410,5 @@ index af0c4b2..c390381 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0054-Optimize-DataWatcher.patch b/CraftBukkit-Patches/0053-Optimize-DataWatcher.patch similarity index 98% rename from CraftBukkit-Patches/0054-Optimize-DataWatcher.patch rename to CraftBukkit-Patches/0053-Optimize-DataWatcher.patch index 1a76d66..dd1f9d5 100644 --- a/CraftBukkit-Patches/0054-Optimize-DataWatcher.patch +++ b/CraftBukkit-Patches/0053-Optimize-DataWatcher.patch @@ -1,4 +1,4 @@ -From 02b73438dc5dc43d338764bf2ab9b4a5d3432d52 Mon Sep 17 00:00:00 2001 +From edb9783da1c312bc10c43a07095bddf53935e043 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 13 Dec 2013 11:45:47 +1100 Subject: [PATCH] Optimize DataWatcher @@ -133,5 +133,5 @@ index 2bf9196..aa46c28 100644 public static class WatchableObject { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0055-Fire-PreLogin-Events-in-Offline-Mode.patch b/CraftBukkit-Patches/0054-Fire-PreLogin-Events-in-Offline-Mode.patch similarity index 94% rename from CraftBukkit-Patches/0055-Fire-PreLogin-Events-in-Offline-Mode.patch rename to CraftBukkit-Patches/0054-Fire-PreLogin-Events-in-Offline-Mode.patch index 001b644..0e3ad68 100644 --- a/CraftBukkit-Patches/0055-Fire-PreLogin-Events-in-Offline-Mode.patch +++ b/CraftBukkit-Patches/0054-Fire-PreLogin-Events-in-Offline-Mode.patch @@ -1,11 +1,11 @@ -From 09291ad2c4942d9be3524f19ceabd46940e384b3 Mon Sep 17 00:00:00 2001 +From c948544e80b194dd53b68464dc3b120549323a40 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 18 Dec 2013 13:32:10 +1100 Subject: [PATCH] Fire PreLogin Events in Offline Mode diff --git a/src/main/java/net/minecraft/server/LoginListener.java b/src/main/java/net/minecraft/server/LoginListener.java -index 50beec2..9bfb5a2 100644 +index 97c88ea..1fa9626 100644 --- a/src/main/java/net/minecraft/server/LoginListener.java +++ b/src/main/java/net/minecraft/server/LoginListener.java @@ -13,6 +13,7 @@ import java.util.Arrays; @@ -42,7 +42,7 @@ index 50beec2..9bfb5a2 100644 EntityPlayer s = this.server.getPlayerList().attemptLogin(this, this.i, hostname); @@ -133,7 +147,15 @@ public class LoginListener implements PacketLoginInListener, IUpdatePlayerListBo this.g = LoginListener.EnumProtocolState.KEY; - this.networkManager.handle(new PacketLoginOutEncryptionBegin(this.j, this.server.P().getPublic(), this.e)); + this.networkManager.handle(new PacketLoginOutEncryptionBegin(this.j, this.server.Q().getPublic(), this.e)); } else { - this.g = LoginListener.EnumProtocolState.READY_TO_ACCEPT; + // Spigot start @@ -62,7 +62,7 @@ index 50beec2..9bfb5a2 100644 } + new LoginHandler().fireEvents(); -+ } else if (LoginListener.this.server.S()) { ++ } else if (LoginListener.this.server.T()) { + LoginListener.c.warn("Failed to verify username but will let them in anyway!"); + LoginListener.this.i = LoginListener.this.a(gameprofile); + LoginListener.this.g = LoginListener.EnumProtocolState.READY_TO_ACCEPT; @@ -71,7 +71,7 @@ index 50beec2..9bfb5a2 100644 + LoginListener.c.error("Username \'" + gameprofile.getName() + "\' tried to join with an invalid session"); // CraftBukkit - fix null pointer + } + } catch (AuthenticationUnavailableException authenticationunavailableexception) { -+ if (LoginListener.this.server.S()) { ++ if (LoginListener.this.server.T()) { + LoginListener.c.warn("Authentication servers are down but will let them in anyway!"); + LoginListener.this.i = LoginListener.this.a(gameprofile); + LoginListener.this.g = LoginListener.EnumProtocolState.READY_TO_ACCEPT; @@ -102,7 +102,7 @@ index 50beec2..9bfb5a2 100644 // CraftBukkit end LoginListener.c.info("UUID of player " + LoginListener.this.i.getName() + " is " + LoginListener.this.i.getId()); LoginListener.this.g = LoginListener.EnumProtocolState.READY_TO_ACCEPT; -- } else if (LoginListener.this.server.S()) { +- } else if (LoginListener.this.server.T()) { - LoginListener.c.warn("Failed to verify username but will let them in anyway!"); - LoginListener.this.i = LoginListener.this.a(gameprofile); - LoginListener.this.g = LoginListener.EnumProtocolState.READY_TO_ACCEPT; @@ -111,7 +111,7 @@ index 50beec2..9bfb5a2 100644 - LoginListener.c.error("Username \'" + gameprofile.getName() + "\' tried to join with an invalid session"); // CraftBukkit - fix null pointer - } - } catch (AuthenticationUnavailableException authenticationunavailableexception) { -- if (LoginListener.this.server.S()) { +- if (LoginListener.this.server.T()) { - LoginListener.c.warn("Authentication servers are down but will let them in anyway!"); - LoginListener.this.i = LoginListener.this.a(gameprofile); - LoginListener.this.g = LoginListener.EnumProtocolState.READY_TO_ACCEPT; @@ -135,5 +135,5 @@ index 50beec2..9bfb5a2 100644 protected GameProfile a(GameProfile gameprofile) { UUID uuid = UUID.nameUUIDFromBytes(("OfflinePlayer:" + gameprofile.getName()).getBytes(Charsets.UTF_8)); -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0056-BungeeCord-Support.patch b/CraftBukkit-Patches/0055-BungeeCord-Support.patch similarity index 96% rename from CraftBukkit-Patches/0056-BungeeCord-Support.patch rename to CraftBukkit-Patches/0055-BungeeCord-Support.patch index a309741..34325e2 100644 --- a/CraftBukkit-Patches/0056-BungeeCord-Support.patch +++ b/CraftBukkit-Patches/0055-BungeeCord-Support.patch @@ -1,4 +1,4 @@ -From db76c7bec6fa44a8942311a28fba5132a5baee28 Mon Sep 17 00:00:00 2001 +From b258124c6b30ae28bd727f320a39f80ad23e03a2 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 1 Dec 2013 18:18:41 +1100 Subject: [PATCH] BungeeCord Support @@ -6,7 +6,7 @@ Subject: [PATCH] BungeeCord Support Provides support for IP forwarding via BungeeCord. diff --git a/src/main/java/net/minecraft/server/HandshakeListener.java b/src/main/java/net/minecraft/server/HandshakeListener.java -index 8f421f3..727948a 100644 +index b34a59a..e5f1f7f 100644 --- a/src/main/java/net/minecraft/server/HandshakeListener.java +++ b/src/main/java/net/minecraft/server/HandshakeListener.java @@ -7,6 +7,7 @@ import java.util.HashMap; @@ -45,7 +45,7 @@ index 8f421f3..727948a 100644 } break; diff --git a/src/main/java/net/minecraft/server/LoginListener.java b/src/main/java/net/minecraft/server/LoginListener.java -index 9bfb5a2..5980e91 100644 +index b936fb3..98eac81 100644 --- a/src/main/java/net/minecraft/server/LoginListener.java +++ b/src/main/java/net/minecraft/server/LoginListener.java @@ -84,9 +84,24 @@ public class LoginListener implements PacketLoginInListener, IUpdatePlayerListBo @@ -75,7 +75,7 @@ index 9bfb5a2..5980e91 100644 // Spigot end @@ -148,13 +163,19 @@ public class LoginListener implements PacketLoginInListener, IUpdatePlayerListBo - this.networkManager.handle(new PacketLoginOutEncryptionBegin(this.j, this.server.P().getPublic(), this.e)); + this.networkManager.handle(new PacketLoginOutEncryptionBegin(this.j, this.server.Q().getPublic(), this.e)); } else { // Spigot start - try { @@ -102,13 +102,13 @@ index 9bfb5a2..5980e91 100644 } diff --git a/src/main/java/net/minecraft/server/NetworkManager.java b/src/main/java/net/minecraft/server/NetworkManager.java -index 89d0bc5..6bd1847 100644 +index cd67d2b..54298b4 100644 --- a/src/main/java/net/minecraft/server/NetworkManager.java +++ b/src/main/java/net/minecraft/server/NetworkManager.java @@ -64,7 +64,11 @@ public class NetworkManager extends SimpleChannelInboundHandler { private final Queue i = Queues.newConcurrentLinkedQueue(); private final ReentrantReadWriteLock j = new ReentrantReadWriteLock(); - public Channel k; // CraftBukkit - public, PAIL: Rename channel + public Channel channel; // CraftBukkit - public - private SocketAddress l; + // Spigot Start + public SocketAddress l; @@ -126,7 +126,7 @@ index 89d0bc5..6bd1847 100644 + // Spigot Start + public SocketAddress getRawAddress() + { -+ return this.k.remoteAddress(); ++ return this.channel.remoteAddress(); + } + // Spigot End } @@ -144,7 +144,7 @@ index cc5aee0..18d0c6b 100644 this.d = EnumProtocol.a(packetdataserializer.e()); } diff --git a/src/main/java/net/minecraft/server/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java -index 38c904c..0974884 100644 +index 7b2d8d1..7fead36 100644 --- a/src/main/java/net/minecraft/server/PlayerList.java +++ b/src/main/java/net/minecraft/server/PlayerList.java @@ -403,7 +403,7 @@ public abstract class PlayerList { @@ -176,7 +176,7 @@ index f0453e6..46710d8 100644 @Override diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -index d606824..08b6f1b 100644 +index a5b7b75..28b4647 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -1320,6 +1320,12 @@ public class CraftPlayer extends CraftHumanEntity implements Player { @@ -212,5 +212,5 @@ index c071421..47ab82f 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0057-Allow-Disabling-Zombie-Villager-Aggression.patch b/CraftBukkit-Patches/0056-Allow-Disabling-Zombie-Villager-Aggression.patch similarity index 95% rename from CraftBukkit-Patches/0057-Allow-Disabling-Zombie-Villager-Aggression.patch rename to CraftBukkit-Patches/0056-Allow-Disabling-Zombie-Villager-Aggression.patch index 180a531..60bccb4 100644 --- a/CraftBukkit-Patches/0057-Allow-Disabling-Zombie-Villager-Aggression.patch +++ b/CraftBukkit-Patches/0056-Allow-Disabling-Zombie-Villager-Aggression.patch @@ -1,4 +1,4 @@ -From 9ba43f6874651943f626511ee2673c07897636b6 Mon Sep 17 00:00:00 2001 +From 11387329e86dce40ba8c4c7880c7634b5d52b28f Mon Sep 17 00:00:00 2001 From: Dylan Xaldin Date: Thu, 12 Dec 2013 18:05:03 -0600 Subject: [PATCH] Allow Disabling Zombie Villager Aggression @@ -6,7 +6,7 @@ Subject: [PATCH] Allow Disabling Zombie Villager Aggression Ability to configure if Zombies will be aggressive towards Villagers. diff --git a/src/main/java/net/minecraft/server/EntityZombie.java b/src/main/java/net/minecraft/server/EntityZombie.java -index 4b56058..2c0c74c 100644 +index 91bb046..1a8d3d8 100644 --- a/src/main/java/net/minecraft/server/EntityZombie.java +++ b/src/main/java/net/minecraft/server/EntityZombie.java @@ -38,12 +38,12 @@ public class EntityZombie extends EntityMonster { @@ -41,5 +41,5 @@ index c390381..9c1cd19 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0058-Configurable-Amount-of-Netty-Threads.patch b/CraftBukkit-Patches/0057-Configurable-Amount-of-Netty-Threads.patch similarity index 92% rename from CraftBukkit-Patches/0058-Configurable-Amount-of-Netty-Threads.patch rename to CraftBukkit-Patches/0057-Configurable-Amount-of-Netty-Threads.patch index 3a8bf10..2f120b1 100644 --- a/CraftBukkit-Patches/0058-Configurable-Amount-of-Netty-Threads.patch +++ b/CraftBukkit-Patches/0057-Configurable-Amount-of-Netty-Threads.patch @@ -1,4 +1,4 @@ -From 377e0c3cdf83fde17e57e70f3c8980973a364552 Mon Sep 17 00:00:00 2001 +From 24af97a358f9850ec1f6ac4c1b44ac83d61db631 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 13 Dec 2013 11:58:58 +1100 Subject: [PATCH] Configurable Amount of Netty Threads @@ -6,7 +6,7 @@ Subject: [PATCH] Configurable Amount of Netty Threads This brings back the option that the Spigot version of netty saw. By default Netty will try and use cores*2 threads, however if running multiple servers on the same machine, this can be too many threads. Additionally some people have 16 core servers. If 32 Netty threads are allowed in this setup, then the lock contention, and thus blocking between threads becomes much greater, leading to decreased performance. diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index b5cb217..fd6ecd6 100644 +index 270d318..6c6f465 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -63,7 +63,7 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs @@ -27,15 +27,15 @@ index b5cb217..fd6ecd6 100644 this.Z = new UserCache(this, file1); this.b = this.h(); // this.convertable = new WorldLoaderServer(file); // CraftBukkit - moved to DedicatedServer.init -@@ -1319,7 +1319,7 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -1325,7 +1325,7 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs } // Spigot End - public ServerConnection ap() { + public ServerConnection aq() { - return this.q; + return this.q == null ? this.q = new ServerConnection(this) : this.q; // Spigot } - public boolean ar() { + public boolean as() { diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java index 47ab82f..865a17f 100644 --- a/src/main/java/org/spigotmc/SpigotConfig.java @@ -53,5 +53,5 @@ index 47ab82f..865a17f 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0059-Prevent-Mineshaft-Saving.patch b/CraftBukkit-Patches/0058-Prevent-Mineshaft-Saving.patch similarity index 92% rename from CraftBukkit-Patches/0059-Prevent-Mineshaft-Saving.patch rename to CraftBukkit-Patches/0058-Prevent-Mineshaft-Saving.patch index be5c7c8..950accf 100644 --- a/CraftBukkit-Patches/0059-Prevent-Mineshaft-Saving.patch +++ b/CraftBukkit-Patches/0058-Prevent-Mineshaft-Saving.patch @@ -1,4 +1,4 @@ -From 4423e0b16f78471a807dbcbc70805d62685a709d Mon Sep 17 00:00:00 2001 +From 73905dd9c8dc0033a23ec2aec3bccffe86612863 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 13 Dec 2013 15:21:02 +1100 Subject: [PATCH] Prevent Mineshaft Saving @@ -18,5 +18,5 @@ index bb1a11e..0f8211a 100644 this.d = (PersistentStructure) world.a(PersistentStructure.class, this.a()); } else -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0060-Log-Cause-of-Unexpected-Exceptions.patch b/CraftBukkit-Patches/0059-Log-Cause-of-Unexpected-Exceptions.patch similarity index 84% rename from CraftBukkit-Patches/0060-Log-Cause-of-Unexpected-Exceptions.patch rename to CraftBukkit-Patches/0059-Log-Cause-of-Unexpected-Exceptions.patch index 4904e8e..6e0faa4 100644 --- a/CraftBukkit-Patches/0060-Log-Cause-of-Unexpected-Exceptions.patch +++ b/CraftBukkit-Patches/0059-Log-Cause-of-Unexpected-Exceptions.patch @@ -1,14 +1,14 @@ -From 34310eefd66d58c67d3b914c47bef7665e6a9f6e Mon Sep 17 00:00:00 2001 +From d5949a9c9b33d98719a85a290047bb5f9b4cbe52 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 18 Dec 2013 13:39:14 +1100 Subject: [PATCH] Log Cause of Unexpected Exceptions diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index fd6ecd6..3c50861 100644 +index 6c6f465..c09a05e 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -544,6 +544,12 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -550,6 +550,12 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs } } catch (Throwable throwable) { MinecraftServer.LOGGER.error("Encountered an unexpected exception", throwable); @@ -22,5 +22,5 @@ index fd6ecd6..3c50861 100644 if (throwable instanceof ReportedException) { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0061-Particle-API.patch b/CraftBukkit-Patches/0060-Particle-API.patch similarity index 99% rename from CraftBukkit-Patches/0061-Particle-API.patch rename to CraftBukkit-Patches/0060-Particle-API.patch index bd2f0d4..a593fb2 100644 --- a/CraftBukkit-Patches/0061-Particle-API.patch +++ b/CraftBukkit-Patches/0060-Particle-API.patch @@ -1,4 +1,4 @@ -From 63d8fa92b3341ead136bef29d489c07a2ca92da0 Mon Sep 17 00:00:00 2001 +From cbae29782927717ec9ccde7e4f14a1fef9b983c5 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Fri, 20 Dec 2013 21:36:06 +0000 Subject: [PATCH] Particle API @@ -132,7 +132,7 @@ index ef1ff3f..5d12a5c 100644 public Spigot spigot() diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -index 08b6f1b..8a6ea4b 100644 +index 28b4647..26c932a 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -322,9 +322,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { @@ -211,5 +211,5 @@ index 08b6f1b..8a6ea4b 100644 public Player.Spigot spigot() -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0062-Save-ticks-lived-to-nbttag.patch b/CraftBukkit-Patches/0061-Save-ticks-lived-to-nbttag.patch similarity index 95% rename from CraftBukkit-Patches/0062-Save-ticks-lived-to-nbttag.patch rename to CraftBukkit-Patches/0061-Save-ticks-lived-to-nbttag.patch index 613e448..6dfdb8f 100644 --- a/CraftBukkit-Patches/0062-Save-ticks-lived-to-nbttag.patch +++ b/CraftBukkit-Patches/0061-Save-ticks-lived-to-nbttag.patch @@ -1,4 +1,4 @@ -From 4a9a0705b636f7359bf2a5cfe752b4408f6d7bdc Mon Sep 17 00:00:00 2001 +From c16e15a3678f6ca208cbde4d6630ec51a22528a6 Mon Sep 17 00:00:00 2001 From: DerFlash Date: Tue, 9 Jul 2013 00:11:12 +0200 Subject: [PATCH] Save ticks lived to nbttag @@ -26,5 +26,5 @@ index 5cf3833..5e1e695 100644 if (entity instanceof EntityTameableAnimal && !isLevelAtLeast(nbttagcompound, 2) && !nbttagcompound.getBoolean("PersistenceRequired")) { EntityInsentient entityinsentient = (EntityInsentient) entity; -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0063-More-Efficient-GetCubes.patch b/CraftBukkit-Patches/0062-More-Efficient-GetCubes.patch similarity index 97% rename from CraftBukkit-Patches/0063-More-Efficient-GetCubes.patch rename to CraftBukkit-Patches/0062-More-Efficient-GetCubes.patch index 3683abe..7827bed 100644 --- a/CraftBukkit-Patches/0063-More-Efficient-GetCubes.patch +++ b/CraftBukkit-Patches/0062-More-Efficient-GetCubes.patch @@ -1,11 +1,11 @@ -From 1c807b738a7524dd87695686f3be58ca1a987cb8 Mon Sep 17 00:00:00 2001 +From 8317a3fbd72cb6731287d8df185ff7a8938c16ce Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 11 Jun 2013 12:17:37 +1000 Subject: [PATCH] More Efficient GetCubes diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java -index c1789a0..c7ef0c5 100644 +index e9211fe..9867081 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -1104,28 +1104,56 @@ public abstract class World implements IBlockAccess { @@ -82,5 +82,5 @@ index c1789a0..c7ef0c5 100644 double d0 = 0.25D; List list = this.getEntities(entity, axisalignedbb.grow(d0, d0, d0)); -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0064-Add-Option-to-Nerf-Mobs-from-Spawner-s.patch b/CraftBukkit-Patches/0063-Add-Option-to-Nerf-Mobs-from-Spawner-s.patch similarity index 96% rename from CraftBukkit-Patches/0064-Add-Option-to-Nerf-Mobs-from-Spawner-s.patch rename to CraftBukkit-Patches/0063-Add-Option-to-Nerf-Mobs-from-Spawner-s.patch index 3c4f38a..011e9fe 100644 --- a/CraftBukkit-Patches/0064-Add-Option-to-Nerf-Mobs-from-Spawner-s.patch +++ b/CraftBukkit-Patches/0063-Add-Option-to-Nerf-Mobs-from-Spawner-s.patch @@ -1,4 +1,4 @@ -From 6f07b5b8fb96bdfa7b2bd48ae6e302f0f175a14c Mon Sep 17 00:00:00 2001 +From d69ad84a9b9497da1a7b45a6de8742a714bcb2c5 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 2 Feb 2014 16:55:46 +0000 Subject: [PATCH] Add Option to Nerf Mobs from Spawner's @@ -17,7 +17,7 @@ index 5e1e695..b930c0d 100644 // Spigot end diff --git a/src/main/java/net/minecraft/server/EntityInsentient.java b/src/main/java/net/minecraft/server/EntityInsentient.java -index d0769c6..acf0578 100644 +index 46f696f..73cdd41 100644 --- a/src/main/java/net/minecraft/server/EntityInsentient.java +++ b/src/main/java/net/minecraft/server/EntityInsentient.java @@ -457,6 +457,12 @@ public abstract class EntityInsentient extends EntityLiving { @@ -34,7 +34,7 @@ index d0769c6..acf0578 100644 this.bk.a(); this.world.methodProfiler.b(); diff --git a/src/main/java/net/minecraft/server/MobSpawnerAbstract.java b/src/main/java/net/minecraft/server/MobSpawnerAbstract.java -index 41cfde8..df71db5 100644 +index 0695fe2..1680918 100644 --- a/src/main/java/net/minecraft/server/MobSpawnerAbstract.java +++ b/src/main/java/net/minecraft/server/MobSpawnerAbstract.java @@ -144,6 +144,12 @@ public abstract class MobSpawnerAbstract { @@ -80,5 +80,5 @@ index 9c1cd19..891812a 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0065-Warn-if-PermGen-may-be-insufficient.patch b/CraftBukkit-Patches/0064-Warn-if-PermGen-may-be-insufficient.patch similarity index 96% rename from CraftBukkit-Patches/0065-Warn-if-PermGen-may-be-insufficient.patch rename to CraftBukkit-Patches/0064-Warn-if-PermGen-may-be-insufficient.patch index 373ac4d..4448bf9 100644 --- a/CraftBukkit-Patches/0065-Warn-if-PermGen-may-be-insufficient.patch +++ b/CraftBukkit-Patches/0064-Warn-if-PermGen-may-be-insufficient.patch @@ -1,4 +1,4 @@ -From e5173c7e5ab0d3d5df0fc9a537bbe96280c9d650 Mon Sep 17 00:00:00 2001 +From 50da834cc12577609c21d18eb8aba1940e1e8ec4 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 23 Dec 2013 14:07:41 +1100 Subject: [PATCH] Warn if PermGen may be insufficient @@ -32,5 +32,5 @@ index 4e642b7..c5bc388 100644 MinecraftServer.main(options); } catch (Throwable t) { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0066-Disable-Connected-Check-on-setScoreboard.patch b/CraftBukkit-Patches/0065-Disable-Connected-Check-on-setScoreboard.patch similarity index 91% rename from CraftBukkit-Patches/0066-Disable-Connected-Check-on-setScoreboard.patch rename to CraftBukkit-Patches/0065-Disable-Connected-Check-on-setScoreboard.patch index e8d45f1..639792a 100644 --- a/CraftBukkit-Patches/0066-Disable-Connected-Check-on-setScoreboard.patch +++ b/CraftBukkit-Patches/0065-Disable-Connected-Check-on-setScoreboard.patch @@ -1,11 +1,11 @@ -From 64cce691e9666ea0d188c7eee9aeccba95cf5cb8 Mon Sep 17 00:00:00 2001 +From 2a802d0791cb9e2658807671a7d3092ab2fef28b Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 23 Dec 2013 15:57:57 +1100 Subject: [PATCH] Disable Connected Check on setScoreboard diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -index 8a6ea4b..023733e 100644 +index 26c932a..03d61c5 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -1241,7 +1241,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { @@ -18,5 +18,5 @@ index 8a6ea4b..023733e 100644 this.server.getScoreboardManager().setPlayerBoard(this, scoreboard); -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0067-Add-Late-Bind-Option.patch b/CraftBukkit-Patches/0066-Add-Late-Bind-Option.patch similarity index 89% rename from CraftBukkit-Patches/0067-Add-Late-Bind-Option.patch rename to CraftBukkit-Patches/0066-Add-Late-Bind-Option.patch index e7b32b7..7f17216 100644 --- a/CraftBukkit-Patches/0067-Add-Late-Bind-Option.patch +++ b/CraftBukkit-Patches/0066-Add-Late-Bind-Option.patch @@ -1,4 +1,4 @@ -From b684e536974bda077336f113a1962ee31585164c Mon Sep 17 00:00:00 2001 +From a851c0d8d864636e9d4fbb63e28af2ed162a8675 Mon Sep 17 00:00:00 2001 From: slide23 Date: Fri, 20 Dec 2013 20:15:33 -0600 Subject: [PATCH] Add Late Bind Option @@ -6,16 +6,16 @@ Subject: [PATCH] Add Late Bind Option Add late-bind config option to delay binding until loading is done. diff --git a/src/main/java/net/minecraft/server/DedicatedServer.java b/src/main/java/net/minecraft/server/DedicatedServer.java -index ae9e255..188a094 100644 +index 33b69c1..8b9c1ef 100644 --- a/src/main/java/net/minecraft/server/DedicatedServer.java +++ b/src/main/java/net/minecraft/server/DedicatedServer.java @@ -174,6 +174,7 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer this.a(MinecraftEncryption.b()); - DedicatedServer.LOGGER.info("Starting Minecraft server on " + (this.getServerIp().length() == 0 ? "*" : this.getServerIp()) + ":" + this.Q()); + DedicatedServer.LOGGER.info("Starting Minecraft server on " + (this.getServerIp().length() == 0 ? "*" : this.getServerIp()) + ":" + this.R()); + if (!org.spigotmc.SpigotConfig.lateBind) { try { - this.ap().a(inetaddress, this.Q()); + this.aq().a(inetaddress, this.R()); } catch (IOException ioexception) { @@ -182,6 +183,7 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer DedicatedServer.LOGGER.warn("Perhaps a server is already running on that port?"); @@ -31,7 +31,7 @@ index ae9e255..188a094 100644 + if (org.spigotmc.SpigotConfig.lateBind) { + try { -+ this.ap().a(inetaddress, this.Q()); ++ this.aq().a(inetaddress, this.R()); + } catch (IOException ioexception) { + DedicatedServer.LOGGER.warn("**** FAILED TO BIND TO PORT!"); + DedicatedServer.LOGGER.warn("The exception was: {}", new Object[] { ioexception.toString()}); @@ -40,7 +40,7 @@ index ae9e255..188a094 100644 + } + } + - if (false && this.aR() > 0L) { // Spigot - disable + if (false && this.aS() > 0L) { // Spigot - disable Thread thread1 = new Thread(new ThreadWatchdog(this)); diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java @@ -58,5 +58,5 @@ index 865a17f..f3187f8 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0068-Allow-statistics-to-be-disabled-forced.patch b/CraftBukkit-Patches/0067-Allow-statistics-to-be-disabled-forced.patch similarity index 98% rename from CraftBukkit-Patches/0068-Allow-statistics-to-be-disabled-forced.patch rename to CraftBukkit-Patches/0067-Allow-statistics-to-be-disabled-forced.patch index 5585b08..4dfe6f0 100644 --- a/CraftBukkit-Patches/0068-Allow-statistics-to-be-disabled-forced.patch +++ b/CraftBukkit-Patches/0067-Allow-statistics-to-be-disabled-forced.patch @@ -1,4 +1,4 @@ -From 0d62500acc28ae30c09959ae8d610e91d0e38939 Mon Sep 17 00:00:00 2001 +From 85d94ac5966d8c8464ab51fe828013a4a23b4207 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Tue, 7 Jan 2014 15:56:26 +0000 Subject: [PATCH] Allow statistics to be disabled/forced @@ -89,5 +89,5 @@ index f3187f8..9566cfa 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0069-Fix-ItemStack-Unbreakable-Code.patch b/CraftBukkit-Patches/0068-Fix-ItemStack-Unbreakable-Code.patch similarity index 92% rename from CraftBukkit-Patches/0069-Fix-ItemStack-Unbreakable-Code.patch rename to CraftBukkit-Patches/0068-Fix-ItemStack-Unbreakable-Code.patch index c4c2f96..fd6e4bb 100644 --- a/CraftBukkit-Patches/0069-Fix-ItemStack-Unbreakable-Code.patch +++ b/CraftBukkit-Patches/0068-Fix-ItemStack-Unbreakable-Code.patch @@ -1,4 +1,4 @@ -From f27c285f4893aeeb368b073e33c6d26a302b5d6c Mon Sep 17 00:00:00 2001 +From 22f8c3151f8726503d2ec1b1b1c5e2b792d89526 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 10 Jan 2014 15:15:50 +1100 Subject: [PATCH] Fix ItemStack Unbreakable Code @@ -24,5 +24,5 @@ index b51da0e..86b20c7 100644 public boolean usesData() { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0070-Try-and-Debug-Crash-Reports-Crashing.patch b/CraftBukkit-Patches/0069-Try-and-Debug-Crash-Reports-Crashing.patch similarity index 88% rename from CraftBukkit-Patches/0070-Try-and-Debug-Crash-Reports-Crashing.patch rename to CraftBukkit-Patches/0069-Try-and-Debug-Crash-Reports-Crashing.patch index 0b343fb..84fa1a4 100644 --- a/CraftBukkit-Patches/0070-Try-and-Debug-Crash-Reports-Crashing.patch +++ b/CraftBukkit-Patches/0069-Try-and-Debug-Crash-Reports-Crashing.patch @@ -1,14 +1,14 @@ -From bd1fa40791a90fc608ed46560b9ede8c8e63ea68 Mon Sep 17 00:00:00 2001 +From 8975b3c027edb2d69e9912526b57137f402edd0d Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 12 Jan 2014 20:56:41 +1100 Subject: [PATCH] Try and Debug Crash Reports Crashing diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 3c50861..3dd4201 100644 +index c09a05e..f331f41 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -739,7 +739,13 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -745,7 +745,13 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs worldserver.doTick(); worldserver.timings.doTick.stopTiming(); // Spigot } catch (Throwable throwable) { @@ -22,7 +22,7 @@ index 3c50861..3dd4201 100644 worldserver.a(crashreport); throw new ReportedException(crashreport); } -@@ -749,7 +755,13 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -755,7 +761,13 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs worldserver.tickEntities(); worldserver.timings.tickEntities.stopTiming(); // Spigot } catch (Throwable throwable1) { @@ -37,5 +37,5 @@ index 3c50861..3dd4201 100644 throw new ReportedException(crashreport); } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0071-Improve-AutoSave-Mechanism.patch b/CraftBukkit-Patches/0070-Improve-AutoSave-Mechanism.patch similarity index 95% rename from CraftBukkit-Patches/0071-Improve-AutoSave-Mechanism.patch rename to CraftBukkit-Patches/0070-Improve-AutoSave-Mechanism.patch index 48ac161..8cbfa80 100644 --- a/CraftBukkit-Patches/0071-Improve-AutoSave-Mechanism.patch +++ b/CraftBukkit-Patches/0070-Improve-AutoSave-Mechanism.patch @@ -1,4 +1,4 @@ -From b7877c0289f388e5873a287aba5a6051fe7fbe53 Mon Sep 17 00:00:00 2001 +From 906b1664a3c1d0afafbf48e0f399389943eac0be Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 12 Jan 2014 21:07:18 +1100 Subject: [PATCH] Improve AutoSave Mechanism @@ -24,10 +24,10 @@ index 5208dbc..f8bfc2d 100644 } diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 3dd4201..4c254a7 100644 +index f331f41..d34c4e9 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -651,7 +651,17 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -657,7 +657,17 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs SpigotTimings.worldSaveTimer.startTiming(); // Spigot this.methodProfiler.a("save"); this.v.savePlayers(); @@ -70,5 +70,5 @@ index 5d12a5c..a4d396d 100644 world.savingDisabled = oldSave; } catch (ExceptionWorldConflict ex) { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0072-Catch-stalling-on-corrupted-map-data-NBT-arrays.patch b/CraftBukkit-Patches/0071-Catch-stalling-on-corrupted-map-data-NBT-arrays.patch similarity index 78% rename from CraftBukkit-Patches/0072-Catch-stalling-on-corrupted-map-data-NBT-arrays.patch rename to CraftBukkit-Patches/0071-Catch-stalling-on-corrupted-map-data-NBT-arrays.patch index cf3b1cc..7f79a73 100644 --- a/CraftBukkit-Patches/0072-Catch-stalling-on-corrupted-map-data-NBT-arrays.patch +++ b/CraftBukkit-Patches/0071-Catch-stalling-on-corrupted-map-data-NBT-arrays.patch @@ -1,33 +1,33 @@ -From 6b3900f3cc727b5ba9b47a4804235e1e7c6825fc Mon Sep 17 00:00:00 2001 +From fa21783447705aa61405d57413882a1973c38907 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 20 Jan 2014 13:44:07 +1100 Subject: [PATCH] Catch stalling on corrupted map data / NBT arrays. diff --git a/src/main/java/net/minecraft/server/NBTTagByteArray.java b/src/main/java/net/minecraft/server/NBTTagByteArray.java -index 3eeed3e..4e9b714 100644 +index c6b5f70..13e9d0b 100644 --- a/src/main/java/net/minecraft/server/NBTTagByteArray.java +++ b/src/main/java/net/minecraft/server/NBTTagByteArray.java -@@ -22,6 +22,7 @@ public class NBTTagByteArray extends NBTBase { - +@@ -23,6 +23,7 @@ public class NBTTagByteArray extends NBTBase { void load(DataInput datainput, int i, NBTReadLimiter nbtreadlimiter) throws IOException { + nbtreadlimiter.a(192L); int j = datainput.readInt(); + com.google.common.base.Preconditions.checkArgument( j < 1 << 24); nbtreadlimiter.a((long) (8 * j)); this.data = new byte[j]; diff --git a/src/main/java/net/minecraft/server/NBTTagIntArray.java b/src/main/java/net/minecraft/server/NBTTagIntArray.java -index 63c3bf9..1ff0902 100644 +index 5f17034..e206e50 100644 --- a/src/main/java/net/minecraft/server/NBTTagIntArray.java +++ b/src/main/java/net/minecraft/server/NBTTagIntArray.java -@@ -26,6 +26,7 @@ public class NBTTagIntArray extends NBTBase { - +@@ -27,6 +27,7 @@ public class NBTTagIntArray extends NBTBase { void load(DataInput datainput, int i, NBTReadLimiter nbtreadlimiter) throws IOException { + nbtreadlimiter.a(192L); int j = datainput.readInt(); + com.google.common.base.Preconditions.checkArgument( j < 1 << 24); nbtreadlimiter.a((long) (32 * j)); this.data = new int[j]; -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0073-Allow-toggling-of-ZombiePigmen-spawning-in-portal-bl.patch b/CraftBukkit-Patches/0072-Allow-toggling-of-ZombiePigmen-spawning-in-portal-bl.patch similarity index 96% rename from CraftBukkit-Patches/0073-Allow-toggling-of-ZombiePigmen-spawning-in-portal-bl.patch rename to CraftBukkit-Patches/0072-Allow-toggling-of-ZombiePigmen-spawning-in-portal-bl.patch index cb61000..30196d0 100644 --- a/CraftBukkit-Patches/0073-Allow-toggling-of-ZombiePigmen-spawning-in-portal-bl.patch +++ b/CraftBukkit-Patches/0072-Allow-toggling-of-ZombiePigmen-spawning-in-portal-bl.patch @@ -1,4 +1,4 @@ -From 94c2df241c96c4b1b49d1dd8ee8bafc6a2868cf7 Mon Sep 17 00:00:00 2001 +From e627892badb9a4b39285375080ef679a8939550c Mon Sep 17 00:00:00 2001 From: Dmck2b Date: Mon, 20 Jan 2014 20:18:23 +0000 Subject: [PATCH] Allow toggling of ZombiePigmen spawning in portal blocks @@ -34,5 +34,5 @@ index 891812a..1971dbf 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0074-Highly-Optimized-Tick-Loop.patch b/CraftBukkit-Patches/0073-Highly-Optimized-Tick-Loop.patch similarity index 93% rename from CraftBukkit-Patches/0074-Highly-Optimized-Tick-Loop.patch rename to CraftBukkit-Patches/0073-Highly-Optimized-Tick-Loop.patch index 1f89c23..b37b46f 100644 --- a/CraftBukkit-Patches/0074-Highly-Optimized-Tick-Loop.patch +++ b/CraftBukkit-Patches/0073-Highly-Optimized-Tick-Loop.patch @@ -1,11 +1,11 @@ -From 665dccba5d5695f2529e4e4db16b564cdaa8f705 Mon Sep 17 00:00:00 2001 +From 5d270b294d73bf43e7394b140068a3d58958224d Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 25 Jan 2014 14:08:35 +1100 Subject: [PATCH] Highly Optimized Tick Loop diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 4c254a7..a15d85a 100644 +index d34c4e9..04874dd 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -120,6 +120,12 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs @@ -21,7 +21,7 @@ index 4c254a7..a15d85a 100644 public MinecraftServer(OptionSet options, Proxy proxy, File file1) { this.e = proxy; -@@ -497,6 +503,13 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -503,6 +509,13 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs this.isRunning = false; } @@ -35,15 +35,15 @@ index 4c254a7..a15d85a 100644 public void run() { try { if (this.init()) { -@@ -507,38 +520,34 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs - this.r.setServerInfo(new ServerPing.ServerData("1.8.3", 47)); +@@ -513,38 +526,34 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs + this.r.setServerInfo(new ServerPing.ServerData("1.8.4", 47)); this.a(this.r); + // Spigot start + Arrays.fill( recentTps, 20 ); + long lastTick = System.nanoTime(), catchupTime = 0, curTime, wait, tickSection = lastTick; while (this.isRunning) { -- long j = ay(); +- long j = az(); - long k = j - this.ab; - - if (k > 2000L && this.ab - this.R >= 15000L) { @@ -68,14 +68,14 @@ index 4c254a7..a15d85a 100644 - i += k; - this.ab = j; -- if (this.worlds.get(0).everyoneDeeplySleeping()) { -- this.z(); +- if (this.worlds.get(0).everyoneDeeplySleeping()) { // CraftBukkit +- this.A(); - i = 0L; - } else { - while (i > 50L) { - MinecraftServer.currentTick = (int) (System.currentTimeMillis() / 50); // CraftBukkit - i -= 50L; -- this.z(); +- this.A(); - } + if ( MinecraftServer.currentTick++ % SAMPLE_INTERVAL == 0 ) + { @@ -88,7 +88,7 @@ index 4c254a7..a15d85a 100644 + lastTick = curTime; - Thread.sleep(Math.max(1L, 50L - i)); -+ this.z(); ++ this.A(); this.Q = true; } + // Spigot end @@ -161,5 +161,5 @@ index 0000000..be2e31d + } +} -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0075-Add-Spigot-Links.patch b/CraftBukkit-Patches/0074-Add-Spigot-Links.patch similarity index 97% rename from CraftBukkit-Patches/0075-Add-Spigot-Links.patch rename to CraftBukkit-Patches/0074-Add-Spigot-Links.patch index 662a1bb..5a537f8 100644 --- a/CraftBukkit-Patches/0075-Add-Spigot-Links.patch +++ b/CraftBukkit-Patches/0074-Add-Spigot-Links.patch @@ -1,4 +1,4 @@ -From be1d9c02d804964523919cac9f71a5f496d812b2 Mon Sep 17 00:00:00 2001 +From 46678a89653b1021dde6354ca6974c76418c9923 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 23 Jan 2014 13:17:35 +1100 Subject: [PATCH] Add Spigot Links @@ -75,5 +75,5 @@ index 0a5d414..d6bcf5c 100644 command-block-overrides: [] aliases: -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0076-Configurable-Ping-Sample-Size.patch b/CraftBukkit-Patches/0075-Configurable-Ping-Sample-Size.patch similarity index 96% rename from CraftBukkit-Patches/0076-Configurable-Ping-Sample-Size.patch rename to CraftBukkit-Patches/0075-Configurable-Ping-Sample-Size.patch index 380a577..b73582d 100644 --- a/CraftBukkit-Patches/0076-Configurable-Ping-Sample-Size.patch +++ b/CraftBukkit-Patches/0075-Configurable-Ping-Sample-Size.patch @@ -1,4 +1,4 @@ -From 1527a785b0971e9b325e25e221727a0045f40bb9 Mon Sep 17 00:00:00 2001 +From 3535fbe78a648b3f4de686e9b4e3750c57a4c022 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 26 Jan 2014 21:48:34 +1100 Subject: [PATCH] Configurable Ping Sample Size @@ -39,5 +39,5 @@ index 345a49c..a0d88ec 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0077-Add-Optional-Tick-Shuffling.patch b/CraftBukkit-Patches/0076-Add-Optional-Tick-Shuffling.patch similarity index 96% rename from CraftBukkit-Patches/0077-Add-Optional-Tick-Shuffling.patch rename to CraftBukkit-Patches/0076-Add-Optional-Tick-Shuffling.patch index 89c96a0..0631d7a 100644 --- a/CraftBukkit-Patches/0077-Add-Optional-Tick-Shuffling.patch +++ b/CraftBukkit-Patches/0076-Add-Optional-Tick-Shuffling.patch @@ -1,4 +1,4 @@ -From 4464e0c882e1b4a29448557a2257e207f3f06124 Mon Sep 17 00:00:00 2001 +From 85f0223660f58d7224bbfd7e7bf3e853638fcf69 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 27 Jan 2014 08:39:26 +1100 Subject: [PATCH] Add Optional Tick Shuffling @@ -39,5 +39,5 @@ index a0d88ec..f19d415 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0078-Allow-Configuring-Chunks-per-Packet.patch b/CraftBukkit-Patches/0077-Allow-Configuring-Chunks-per-Packet.patch similarity index 93% rename from CraftBukkit-Patches/0078-Allow-Configuring-Chunks-per-Packet.patch rename to CraftBukkit-Patches/0077-Allow-Configuring-Chunks-per-Packet.patch index 5892c3e..71cb904 100644 --- a/CraftBukkit-Patches/0078-Allow-Configuring-Chunks-per-Packet.patch +++ b/CraftBukkit-Patches/0077-Allow-Configuring-Chunks-per-Packet.patch @@ -1,11 +1,11 @@ -From 0f89431558495b3cd2c769dc50bab770f0cd2ad8 Mon Sep 17 00:00:00 2001 +From d5cfbd51ff49e345b3d080b284e986dfb6e473ee Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 28 Jan 2014 20:35:35 +1100 Subject: [PATCH] Allow Configuring Chunks per Packet diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java -index 657f3f5..5751844 100644 +index 1fd636c..98b54fe 100644 --- a/src/main/java/net/minecraft/server/EntityPlayer.java +++ b/src/main/java/net/minecraft/server/EntityPlayer.java @@ -223,7 +223,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting { @@ -34,5 +34,5 @@ index 1971dbf..c7cb20c 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0079-Implement-Locale-Getter-for-Players.patch b/CraftBukkit-Patches/0078-Implement-Locale-Getter-for-Players.patch similarity index 91% rename from CraftBukkit-Patches/0079-Implement-Locale-Getter-for-Players.patch rename to CraftBukkit-Patches/0078-Implement-Locale-Getter-for-Players.patch index 3d72158..ea94b5d 100644 --- a/CraftBukkit-Patches/0079-Implement-Locale-Getter-for-Players.patch +++ b/CraftBukkit-Patches/0078-Implement-Locale-Getter-for-Players.patch @@ -1,11 +1,11 @@ -From 5c31df4ceeb0b2cb8b3997dc8cbeeadac7836a25 Mon Sep 17 00:00:00 2001 +From 2b5c9c222bfb53b70c60b3b9d8b26512030f8b3f Mon Sep 17 00:00:00 2001 From: Smove Date: Sat, 1 Feb 2014 18:12:16 +1100 Subject: [PATCH] Implement Locale Getter for Players diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java -index 5751844..3854edf 100644 +index 98b54fe..3ab1801 100644 --- a/src/main/java/net/minecraft/server/EntityPlayer.java +++ b/src/main/java/net/minecraft/server/EntityPlayer.java @@ -27,7 +27,7 @@ import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; @@ -18,7 +18,7 @@ index 5751844..3854edf 100644 public final MinecraftServer server; public final PlayerInteractManager playerInteractManager; diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -index 023733e..05babef 100644 +index 03d61c5..b7d5f28 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -1401,6 +1401,12 @@ public class CraftPlayer extends CraftHumanEntity implements Player { @@ -35,5 +35,5 @@ index 023733e..05babef 100644 public Player.Spigot spigot() -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0080-Cap-Entity-Collisions.patch b/CraftBukkit-Patches/0079-Cap-Entity-Collisions.patch similarity index 96% rename from CraftBukkit-Patches/0080-Cap-Entity-Collisions.patch rename to CraftBukkit-Patches/0079-Cap-Entity-Collisions.patch index 73b1e6d..c921d44 100644 --- a/CraftBukkit-Patches/0080-Cap-Entity-Collisions.patch +++ b/CraftBukkit-Patches/0079-Cap-Entity-Collisions.patch @@ -1,4 +1,4 @@ -From b1e0831238da2e176d7af809832d3e7466946d3f Mon Sep 17 00:00:00 2001 +From 886fe319aa0b17ffea9899275c07889b3346919e Mon Sep 17 00:00:00 2001 From: Aikar Date: Fri, 31 Jan 2014 11:18:34 -0500 Subject: [PATCH] Cap Entity Collisions @@ -19,7 +19,7 @@ index b930c0d..82accf4 100644 if (entity.passenger != this && entity.vehicle != this) { if (!entity.noclip && !this.noclip) { diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java -index c6244a5..99b120a 100644 +index 9cd8e9b..0e2f64f 100644 --- a/src/main/java/net/minecraft/server/EntityLiving.java +++ b/src/main/java/net/minecraft/server/EntityLiving.java @@ -1675,7 +1675,9 @@ public abstract class EntityLiving extends Entity { @@ -61,5 +61,5 @@ index c7cb20c..76ded26 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0081-Fix-dispensing-bone-meal-not-having-the-correct-data.patch b/CraftBukkit-Patches/0080-Fix-dispensing-bone-meal-not-having-the-correct-data.patch similarity index 94% rename from CraftBukkit-Patches/0081-Fix-dispensing-bone-meal-not-having-the-correct-data.patch rename to CraftBukkit-Patches/0080-Fix-dispensing-bone-meal-not-having-the-correct-data.patch index 1de1395..b01e2e0 100644 --- a/CraftBukkit-Patches/0081-Fix-dispensing-bone-meal-not-having-the-correct-data.patch +++ b/CraftBukkit-Patches/0080-Fix-dispensing-bone-meal-not-having-the-correct-data.patch @@ -1,4 +1,4 @@ -From 7face1b7ce8bf6835aaf7d2b955f421c2836de5c Mon Sep 17 00:00:00 2001 +From 86eb3b6d91c8b107d33eacda6c688a929e1f9fe6 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Thu, 6 Feb 2014 21:59:20 +0000 Subject: [PATCH] Fix dispensing bone meal not having the correct data value @@ -18,5 +18,5 @@ index f730e97..4d1c04e 100644 BlockDispenseEvent event = new BlockDispenseEvent(block, craftItem.clone(), new org.bukkit.util.Vector(0, 0, 0)); if (!BlockDispenser.eventFired) { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0082-Spam-Filter-Exclusions.patch b/CraftBukkit-Patches/0081-Spam-Filter-Exclusions.patch similarity index 93% rename from CraftBukkit-Patches/0082-Spam-Filter-Exclusions.patch rename to CraftBukkit-Patches/0081-Spam-Filter-Exclusions.patch index 289891a..9b70142 100644 --- a/CraftBukkit-Patches/0082-Spam-Filter-Exclusions.patch +++ b/CraftBukkit-Patches/0081-Spam-Filter-Exclusions.patch @@ -1,14 +1,14 @@ -From 19a15e7391ff2f82fce0fef0686aaec22364853d Mon Sep 17 00:00:00 2001 +From 34bd1e6741ed279d9536df41fd39e2a8dbb04798 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 8 Feb 2014 08:13:40 +0000 Subject: [PATCH] Spam Filter Exclusions diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java -index a1341a7..788300c 100644 +index e46c600..dc395e1 100644 --- a/src/main/java/net/minecraft/server/PlayerConnection.java +++ b/src/main/java/net/minecraft/server/PlayerConnection.java -@@ -975,9 +975,20 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList +@@ -971,9 +971,20 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList this.minecraftServer.getPlayerList().sendMessage(chatmessage1, false); } @@ -57,5 +57,5 @@ index f19d415..8419c28 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0083-Add-Option-to-Silence-CommandBlock-Console.patch b/CraftBukkit-Patches/0082-Add-Option-to-Silence-CommandBlock-Console.patch similarity index 87% rename from CraftBukkit-Patches/0083-Add-Option-to-Silence-CommandBlock-Console.patch rename to CraftBukkit-Patches/0082-Add-Option-to-Silence-CommandBlock-Console.patch index 99a1c90..f6a2d24 100644 --- a/CraftBukkit-Patches/0083-Add-Option-to-Silence-CommandBlock-Console.patch +++ b/CraftBukkit-Patches/0082-Add-Option-to-Silence-CommandBlock-Console.patch @@ -1,14 +1,14 @@ -From fd8e11bd340ece46dcb8a5cdf1997935728d4ee8 Mon Sep 17 00:00:00 2001 +From 1d78f256c07f82478c4cab777dc2b1951e016baf Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 9 Feb 2014 14:39:01 +1100 Subject: [PATCH] Add Option to Silence CommandBlock Console diff --git a/src/main/java/net/minecraft/server/CommandDispatcher.java b/src/main/java/net/minecraft/server/CommandDispatcher.java -index 54133a7..53fbc3e 100644 +index 81289b7..fc52287 100644 --- a/src/main/java/net/minecraft/server/CommandDispatcher.java +++ b/src/main/java/net/minecraft/server/CommandDispatcher.java -@@ -95,7 +95,7 @@ public class CommandDispatcher extends CommandHandler implements ICommandDispatc +@@ -100,7 +100,7 @@ public class CommandDispatcher extends CommandHandler implements ICommandDispatc } } @@ -33,5 +33,5 @@ index 8419c28..f58208e 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0084-Add-support-for-fetching-hidden-players.patch b/CraftBukkit-Patches/0083-Add-support-for-fetching-hidden-players.patch similarity index 90% rename from CraftBukkit-Patches/0084-Add-support-for-fetching-hidden-players.patch rename to CraftBukkit-Patches/0083-Add-support-for-fetching-hidden-players.patch index 09b9cfc..443cb65 100644 --- a/CraftBukkit-Patches/0084-Add-support-for-fetching-hidden-players.patch +++ b/CraftBukkit-Patches/0083-Add-support-for-fetching-hidden-players.patch @@ -1,11 +1,11 @@ -From d0ecbea588d703daefabe616b760ea6ed47c99d2 Mon Sep 17 00:00:00 2001 +From 0c71ffab145eea2dbaaf80597e04ec1aa88378bd Mon Sep 17 00:00:00 2001 From: Tux Date: Sun, 9 Feb 2014 14:03:03 -0500 Subject: [PATCH] Add support for fetching hidden players diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -index 05babef..6224cde 100644 +index b7d5f28..19008c4 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -1407,6 +1407,18 @@ public class CraftPlayer extends CraftHumanEntity implements Player { @@ -28,5 +28,5 @@ index 05babef..6224cde 100644 public Player.Spigot spigot() -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0085-Allow-Disabling-Creative-Item-Filter.patch b/CraftBukkit-Patches/0084-Allow-Disabling-Creative-Item-Filter.patch similarity index 92% rename from CraftBukkit-Patches/0085-Allow-Disabling-Creative-Item-Filter.patch rename to CraftBukkit-Patches/0084-Allow-Disabling-Creative-Item-Filter.patch index 0fd6ea6..c19e297 100644 --- a/CraftBukkit-Patches/0085-Allow-Disabling-Creative-Item-Filter.patch +++ b/CraftBukkit-Patches/0084-Allow-Disabling-Creative-Item-Filter.patch @@ -1,14 +1,14 @@ -From 1e6077f596837a4ae0328b6a179779f78a41d04f Mon Sep 17 00:00:00 2001 +From e69291f969d4c2b4396bd3f1bdf8b7d4a6a05758 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 12 Feb 2014 18:18:01 +1100 Subject: [PATCH] Allow Disabling Creative Item Filter diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java -index 788300c..78f6444 100644 +index dc395e1..bba531c 100644 --- a/src/main/java/net/minecraft/server/PlayerConnection.java +++ b/src/main/java/net/minecraft/server/PlayerConnection.java -@@ -1701,7 +1701,7 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList +@@ -1697,7 +1697,7 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList boolean flag1 = packetplayinsetcreativeslot.a() >= 1 && packetplayinsetcreativeslot.a() < 36 + PlayerInventory.getHotbarSize(); // CraftBukkit - Add invalidItems check @@ -33,5 +33,5 @@ index f58208e..86c45c6 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0086-Cap-Channel-Registrations.patch b/CraftBukkit-Patches/0085-Cap-Channel-Registrations.patch similarity index 88% rename from CraftBukkit-Patches/0086-Cap-Channel-Registrations.patch rename to CraftBukkit-Patches/0085-Cap-Channel-Registrations.patch index a3fe7ff..d68ffe3 100644 --- a/CraftBukkit-Patches/0086-Cap-Channel-Registrations.patch +++ b/CraftBukkit-Patches/0085-Cap-Channel-Registrations.patch @@ -1,11 +1,11 @@ -From 9441ab38aa6f6dcf8a0d96652e204b12d5c0ee7a Mon Sep 17 00:00:00 2001 +From 316538f0307e343c7b236f4b9abaf3324368b565 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 12 Feb 2014 20:02:58 +1100 Subject: [PATCH] Cap Channel Registrations diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -index 6224cde..306ac63 100644 +index 19008c4..912ac14 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -1061,6 +1061,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { @@ -17,5 +17,5 @@ index 6224cde..306ac63 100644 server.getPluginManager().callEvent(new PlayerRegisterChannelEvent(this, channel)); } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0087-Allow-vanilla-commands-to-be-the-main-version-of-a-c.patch b/CraftBukkit-Patches/0086-Allow-vanilla-commands-to-be-the-main-version-of-a-c.patch similarity index 97% rename from CraftBukkit-Patches/0087-Allow-vanilla-commands-to-be-the-main-version-of-a-c.patch rename to CraftBukkit-Patches/0086-Allow-vanilla-commands-to-be-the-main-version-of-a-c.patch index 1d856cf..3def79b 100644 --- a/CraftBukkit-Patches/0087-Allow-vanilla-commands-to-be-the-main-version-of-a-c.patch +++ b/CraftBukkit-Patches/0086-Allow-vanilla-commands-to-be-the-main-version-of-a-c.patch @@ -1,4 +1,4 @@ -From 2d10249e7c0292e22e359915e06c48d7921d8f63 Mon Sep 17 00:00:00 2001 +From 9ef3b3f6584c113c485336e448a0e320478f0f18 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Wed, 12 Feb 2014 20:44:14 +0000 Subject: [PATCH] Allow vanilla commands to be the main version of a command @@ -76,5 +76,5 @@ index 86c45c6..4932990 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0088-Unfinalize-the-isDisconnected-method-by-bukkit.patch b/CraftBukkit-Patches/0087-Unfinalize-the-isDisconnected-method-by-bukkit.patch similarity index 75% rename from CraftBukkit-Patches/0088-Unfinalize-the-isDisconnected-method-by-bukkit.patch rename to CraftBukkit-Patches/0087-Unfinalize-the-isDisconnected-method-by-bukkit.patch index e87fc14..bc68ea4 100644 --- a/CraftBukkit-Patches/0088-Unfinalize-the-isDisconnected-method-by-bukkit.patch +++ b/CraftBukkit-Patches/0087-Unfinalize-the-isDisconnected-method-by-bukkit.patch @@ -1,4 +1,4 @@ -From 606b505960fd5b49dc45cc87a79e08a106ffc85f Mon Sep 17 00:00:00 2001 +From e904ef2211f681fcd0a2f4453b1e41080ce11dae Mon Sep 17 00:00:00 2001 From: hcherndon Date: Sat, 15 Feb 2014 01:51:20 -0600 Subject: [PATCH] Unfinalize the isDisconnected() method by bukkit. @@ -6,18 +6,18 @@ Subject: [PATCH] Unfinalize the isDisconnected() method by bukkit. This would literally mean the world to me. You have no idea how much this method being final is fucking me over right now. (Working with NPC's and what not.) diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java -index 78f6444..66366fc 100644 +index bba531c..23a03ce 100644 --- a/src/main/java/net/minecraft/server/PlayerConnection.java +++ b/src/main/java/net/minecraft/server/PlayerConnection.java -@@ -2064,7 +2064,7 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList +@@ -2060,7 +2060,7 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList } // CraftBukkit start - Add "isDisconnected" method - public final boolean isDisconnected() { + public boolean isDisconnected() { // Spigot - return !this.player.joining && !this.networkManager.k.config().isAutoRead(); + return !this.player.joining && !this.networkManager.channel.config().isAutoRead(); } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0089-Implement-Silenceable-Lightning-API.patch b/CraftBukkit-Patches/0088-Implement-Silenceable-Lightning-API.patch similarity index 97% rename from CraftBukkit-Patches/0089-Implement-Silenceable-Lightning-API.patch rename to CraftBukkit-Patches/0088-Implement-Silenceable-Lightning-API.patch index 8fa0a54..82f5639 100644 --- a/CraftBukkit-Patches/0089-Implement-Silenceable-Lightning-API.patch +++ b/CraftBukkit-Patches/0088-Implement-Silenceable-Lightning-API.patch @@ -1,4 +1,4 @@ -From a936dd8257a14e8645b052fa880425a0f3725565 Mon Sep 17 00:00:00 2001 +From ab8b89560a0152efbf8957614a8c1bc1b0480af9 Mon Sep 17 00:00:00 2001 From: drXor Date: Sun, 23 Feb 2014 16:16:59 -0400 Subject: [PATCH] Implement Silenceable Lightning API @@ -82,5 +82,5 @@ index 243e8e5..0bacc83 100644 @Override -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0090-Use-one-PermissibleBase-for-all-Command-Blocks.patch b/CraftBukkit-Patches/0089-Use-one-PermissibleBase-for-all-Command-Blocks.patch similarity index 94% rename from CraftBukkit-Patches/0090-Use-one-PermissibleBase-for-all-Command-Blocks.patch rename to CraftBukkit-Patches/0089-Use-one-PermissibleBase-for-all-Command-Blocks.patch index 464a175..baf5513 100644 --- a/CraftBukkit-Patches/0090-Use-one-PermissibleBase-for-all-Command-Blocks.patch +++ b/CraftBukkit-Patches/0089-Use-one-PermissibleBase-for-all-Command-Blocks.patch @@ -1,4 +1,4 @@ -From 616d2a16110d5b81ab5efea5ed557fff01dd154e Mon Sep 17 00:00:00 2001 +From 1a8013d61fb93b9d647874ba7cb9e7642bb220e3 Mon Sep 17 00:00:00 2001 From: FrozenBrain Date: Sun, 2 Mar 2014 21:13:46 +0100 Subject: [PATCH] Use one PermissibleBase for all Command Blocks @@ -29,5 +29,5 @@ index 1314c74..b339cf3 100644 public boolean isPermissionSet(String name) { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0091-Prevent-hoppers-from-loading-chunks.patch b/CraftBukkit-Patches/0090-Prevent-hoppers-from-loading-chunks.patch similarity index 92% rename from CraftBukkit-Patches/0091-Prevent-hoppers-from-loading-chunks.patch rename to CraftBukkit-Patches/0090-Prevent-hoppers-from-loading-chunks.patch index 65931fe..1eeaa9f 100644 --- a/CraftBukkit-Patches/0091-Prevent-hoppers-from-loading-chunks.patch +++ b/CraftBukkit-Patches/0090-Prevent-hoppers-from-loading-chunks.patch @@ -1,4 +1,4 @@ -From 0d1978cea58a7419d6feea9d3218a9d52e1d50e8 Mon Sep 17 00:00:00 2001 +From a62a8c6910ee563d988c304a7549b7fc6dde24c6 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Wed, 5 Mar 2014 20:27:27 +0000 Subject: [PATCH] Prevent hoppers from loading chunks @@ -17,5 +17,5 @@ index 8e0d254..766f74e 100644 if (block.isTileEntity()) { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0092-Guard-Entity-List.patch b/CraftBukkit-Patches/0091-Guard-Entity-List.patch similarity index 96% rename from CraftBukkit-Patches/0092-Guard-Entity-List.patch rename to CraftBukkit-Patches/0091-Guard-Entity-List.patch index aee9e14..c00db78 100644 --- a/CraftBukkit-Patches/0092-Guard-Entity-List.patch +++ b/CraftBukkit-Patches/0091-Guard-Entity-List.patch @@ -1,11 +1,11 @@ -From b657c8eff28c9b79470cdb0234281ee0076d5b19 Mon Sep 17 00:00:00 2001 +From 9985b3c8eca0679b016de64987fdb7efac14b566 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 10 Mar 2014 09:03:28 +1100 Subject: [PATCH] Guard Entity List diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java -index c7ef0c5..2624563 100644 +index 9867081..94481dc 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -37,7 +37,32 @@ public abstract class World implements IBlockAccess { @@ -75,5 +75,5 @@ index c7ef0c5..2624563 100644 timings.entityTick.stopTiming(); // Spigot this.methodProfiler.c("blockEntities"); -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0093-Fix-ConcurrentModificationException-while-being-idle.patch b/CraftBukkit-Patches/0092-Fix-ConcurrentModificationException-while-being-idle.patch similarity index 89% rename from CraftBukkit-Patches/0093-Fix-ConcurrentModificationException-while-being-idle.patch rename to CraftBukkit-Patches/0092-Fix-ConcurrentModificationException-while-being-idle.patch index f17900c..d066cdb 100644 --- a/CraftBukkit-Patches/0093-Fix-ConcurrentModificationException-while-being-idle.patch +++ b/CraftBukkit-Patches/0092-Fix-ConcurrentModificationException-while-being-idle.patch @@ -1,4 +1,4 @@ -From 9396800d9598acc77ff5c7bc3f152221f252649b Mon Sep 17 00:00:00 2001 +From 627cefb0736a27110bbf2b434a37fd86d21a3742 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Tue, 14 Jan 2014 20:11:25 +0000 Subject: [PATCH] Fix ConcurrentModificationException while being idle kicked @@ -6,7 +6,7 @@ Subject: [PATCH] Fix ConcurrentModificationException while being idle kicked diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java -index 2624563..502a432 100644 +index 94481dc..6dc0f2e 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -1093,6 +1093,7 @@ public abstract class World implements IBlockAccess { @@ -26,5 +26,5 @@ index 2624563..502a432 100644 } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0094-Cancellable-WitherSkull-potion-effect.patch b/CraftBukkit-Patches/0093-Cancellable-WitherSkull-potion-effect.patch similarity index 96% rename from CraftBukkit-Patches/0094-Cancellable-WitherSkull-potion-effect.patch rename to CraftBukkit-Patches/0093-Cancellable-WitherSkull-potion-effect.patch index 9ed804f..2b4b681 100644 --- a/CraftBukkit-Patches/0094-Cancellable-WitherSkull-potion-effect.patch +++ b/CraftBukkit-Patches/0093-Cancellable-WitherSkull-potion-effect.patch @@ -1,4 +1,4 @@ -From 0e47ee1fa24cd28d8fdd6c65457b16f1a3f41ae5 Mon Sep 17 00:00:00 2001 +From 5728fa581275b4ab2284a6b721567323d8a89524 Mon Sep 17 00:00:00 2001 From: drXor Date: Tue, 25 Feb 2014 15:15:26 -0400 Subject: [PATCH] Cancellable WitherSkull potion effect @@ -36,5 +36,5 @@ index e169184..f0e627b 100644 if (this.world.getDifficulty() == EnumDifficulty.NORMAL) { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0095-Descriptive-kick-reasons-instead-of-Nope.patch b/CraftBukkit-Patches/0094-Descriptive-kick-reasons-instead-of-Nope.patch similarity index 93% rename from CraftBukkit-Patches/0095-Descriptive-kick-reasons-instead-of-Nope.patch rename to CraftBukkit-Patches/0094-Descriptive-kick-reasons-instead-of-Nope.patch index 8e5c7ce..3578b3a 100644 --- a/CraftBukkit-Patches/0095-Descriptive-kick-reasons-instead-of-Nope.patch +++ b/CraftBukkit-Patches/0094-Descriptive-kick-reasons-instead-of-Nope.patch @@ -1,4 +1,4 @@ -From d9429048c292e4bcaa5409ea686274a6efd3b138 Mon Sep 17 00:00:00 2001 +From 598d9e52bcc654a4ef0482b8ecd382e9e27fbf00 Mon Sep 17 00:00:00 2001 From: drXor Date: Sat, 15 Mar 2014 01:30:05 -0400 Subject: [PATCH] Descriptive kick reasons instead of Nope! @@ -27,7 +27,7 @@ index 82accf4..d6bef0b 100644 f1 = 0; } diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java -index 66366fc..fbab12e 100644 +index 23a03ce..ddd03f5 100644 --- a/src/main/java/net/minecraft/server/PlayerConnection.java +++ b/src/main/java/net/minecraft/server/PlayerConnection.java @@ -200,7 +200,7 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList @@ -39,8 +39,8 @@ index 66366fc..fbab12e 100644 return; } // CraftBukkit end -@@ -898,7 +898,7 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList - this.player.z(); +@@ -894,7 +894,7 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList + this.player.resetIdleTimer(); } else { PlayerConnection.c.warn(this.player.getName() + " tried to set an invalid carried item"); - this.disconnect("Nope!"); // CraftBukkit @@ -49,5 +49,5 @@ index 66366fc..fbab12e 100644 } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0096-Configurable-dragon-death-and-wither-spawn-sounds.patch b/CraftBukkit-Patches/0095-Configurable-dragon-death-and-wither-spawn-sounds.patch similarity index 95% rename from CraftBukkit-Patches/0096-Configurable-dragon-death-and-wither-spawn-sounds.patch rename to CraftBukkit-Patches/0095-Configurable-dragon-death-and-wither-spawn-sounds.patch index ce89269..6ab0cd4 100644 --- a/CraftBukkit-Patches/0096-Configurable-dragon-death-and-wither-spawn-sounds.patch +++ b/CraftBukkit-Patches/0095-Configurable-dragon-death-and-wither-spawn-sounds.patch @@ -1,11 +1,11 @@ -From 695503aa2a5918e866e212082e0c61aa86547722 Mon Sep 17 00:00:00 2001 +From 6b7476ff90b5149f42652a389728558a65b15b31 Mon Sep 17 00:00:00 2001 From: drXor Date: Sat, 29 Mar 2014 13:44:25 -0400 Subject: [PATCH] Configurable dragon death and wither spawn sounds diff --git a/src/main/java/net/minecraft/server/EntityEnderDragon.java b/src/main/java/net/minecraft/server/EntityEnderDragon.java -index 9dec38a..4bdcfc6 100644 +index d4ec5fb..fcddd26 100644 --- a/src/main/java/net/minecraft/server/EntityEnderDragon.java +++ b/src/main/java/net/minecraft/server/EntityEnderDragon.java @@ -578,6 +578,7 @@ public class EntityEnderDragon extends EntityInsentient implements IComplex, IMo @@ -17,7 +17,7 @@ index 9dec38a..4bdcfc6 100644 double deltaLength = Math.sqrt(distanceSquared); double relativeX = player.locX + (deltaX / deltaLength) * viewDistance; diff --git a/src/main/java/net/minecraft/server/EntityWither.java b/src/main/java/net/minecraft/server/EntityWither.java -index ec19fef..779029c 100644 +index 9884a82..fb19bad 100644 --- a/src/main/java/net/minecraft/server/EntityWither.java +++ b/src/main/java/net/minecraft/server/EntityWither.java @@ -191,6 +191,7 @@ public class EntityWither extends EntityMonster implements IRangedEntity { @@ -50,5 +50,5 @@ index 76ded26..c06084d 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0097-Display-Spigot-in-client-crashes-server-lists-and-Mo.patch b/CraftBukkit-Patches/0096-Display-Spigot-in-client-crashes-server-lists-and-Mo.patch similarity index 81% rename from CraftBukkit-Patches/0097-Display-Spigot-in-client-crashes-server-lists-and-Mo.patch rename to CraftBukkit-Patches/0096-Display-Spigot-in-client-crashes-server-lists-and-Mo.patch index 9d80fc3..1f4010f 100644 --- a/CraftBukkit-Patches/0097-Display-Spigot-in-client-crashes-server-lists-and-Mo.patch +++ b/CraftBukkit-Patches/0096-Display-Spigot-in-client-crashes-server-lists-and-Mo.patch @@ -1,4 +1,4 @@ -From e9812cd6340e15f248aa8ccb4f27fe3290de77d0 Mon Sep 17 00:00:00 2001 +From 274394202bcfc5682111788a0ed9ed0bb4cc8b6d Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Fri, 11 Apr 2014 11:16:34 +0100 Subject: [PATCH] Display 'Spigot' in client crashes, server lists and Mojang @@ -6,10 +6,10 @@ Subject: [PATCH] Display 'Spigot' in client crashes, server lists and Mojang diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index a15d85a..2cb938c 100644 +index 04874dd..0dbe68c 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -1011,7 +1011,7 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -1017,7 +1017,7 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs } public String getServerModName() { @@ -19,5 +19,5 @@ index a15d85a..2cb938c 100644 public CrashReport b(CrashReport crashreport) { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0098-Treat-Bungee-as-Online-Mode.patch b/CraftBukkit-Patches/0097-Treat-Bungee-as-Online-Mode.patch similarity index 89% rename from CraftBukkit-Patches/0098-Treat-Bungee-as-Online-Mode.patch rename to CraftBukkit-Patches/0097-Treat-Bungee-as-Online-Mode.patch index 67c81cc..c89086e 100644 --- a/CraftBukkit-Patches/0098-Treat-Bungee-as-Online-Mode.patch +++ b/CraftBukkit-Patches/0097-Treat-Bungee-as-Online-Mode.patch @@ -1,11 +1,11 @@ -From dbbc298bb54d0f001bc3e901058018ca5eca0074 Mon Sep 17 00:00:00 2001 +From be79f744090c1b996c8d497e1b5ee2902a78ba9c Mon Sep 17 00:00:00 2001 From: md_5 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 31aa200..c1f8ff6 100644 +index 51bc8bd..d67539c 100644 --- a/src/main/java/net/minecraft/server/NameReferencingFileConverter.java +++ b/src/main/java/net/minecraft/server/NameReferencingFileConverter.java @@ -63,7 +63,7 @@ public class NameReferencingFileConverter { @@ -18,5 +18,5 @@ index 31aa200..c1f8ff6 100644 } else { String[] astring1 = astring; -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0099-Add-Conversion-Message.patch b/CraftBukkit-Patches/0098-Add-Conversion-Message.patch similarity index 75% rename from CraftBukkit-Patches/0099-Add-Conversion-Message.patch rename to CraftBukkit-Patches/0098-Add-Conversion-Message.patch index 6d4db3e..8edb5d6 100644 --- a/CraftBukkit-Patches/0099-Add-Conversion-Message.patch +++ b/CraftBukkit-Patches/0098-Add-Conversion-Message.patch @@ -1,21 +1,21 @@ -From 07675c207348156b74a2523d99fe1e8f00dd8c0a Mon Sep 17 00:00:00 2001 +From d29b9d3e1a42a524da1bd657afba35115af29577 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 12 Apr 2014 23:30:44 +1000 Subject: [PATCH] Add Conversion Message diff --git a/src/main/java/net/minecraft/server/DedicatedServer.java b/src/main/java/net/minecraft/server/DedicatedServer.java -index 188a094..28135ba 100644 +index 8b9c1ef..9bba97b 100644 --- a/src/main/java/net/minecraft/server/DedicatedServer.java +++ b/src/main/java/net/minecraft/server/DedicatedServer.java -@@ -513,6 +513,7 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer +@@ -517,6 +517,7 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer } - protected boolean aQ() { + protected boolean aR() { + server.getLogger().info( "**** Beginning UUID conversion, this may take A LONG time ****"); // Spigot, let the user know whats up! boolean flag = false; int i; -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0100-Properly-cancel-fishing-event.-Fixes-BUKKIT-5396.patch b/CraftBukkit-Patches/0099-Properly-cancel-fishing-event.-Fixes-BUKKIT-5396.patch similarity index 94% rename from CraftBukkit-Patches/0100-Properly-cancel-fishing-event.-Fixes-BUKKIT-5396.patch rename to CraftBukkit-Patches/0099-Properly-cancel-fishing-event.-Fixes-BUKKIT-5396.patch index a207461..d1fca1f 100644 --- a/CraftBukkit-Patches/0100-Properly-cancel-fishing-event.-Fixes-BUKKIT-5396.patch +++ b/CraftBukkit-Patches/0099-Properly-cancel-fishing-event.-Fixes-BUKKIT-5396.patch @@ -1,4 +1,4 @@ -From 91eb07d9af70866b99bc8dcedc6c3fde2836b188 Mon Sep 17 00:00:00 2001 +From ac112d63cab52997d71ed72f324e2fd1725d7e33 Mon Sep 17 00:00:00 2001 From: "gjmcferrin@gmail.com" Date: Mon, 10 Feb 2014 10:05:11 -0500 Subject: [PATCH] Properly cancel fishing event. Fixes BUKKIT-5396 @@ -22,5 +22,5 @@ index 3cf292f..050a504 100644 } // CraftBukkit end -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0101-Print-Stack-on-InternalException.patch b/CraftBukkit-Patches/0100-Print-Stack-on-InternalException.patch similarity index 87% rename from CraftBukkit-Patches/0101-Print-Stack-on-InternalException.patch rename to CraftBukkit-Patches/0100-Print-Stack-on-InternalException.patch index f3f9881..9608ee7 100644 --- a/CraftBukkit-Patches/0101-Print-Stack-on-InternalException.patch +++ b/CraftBukkit-Patches/0100-Print-Stack-on-InternalException.patch @@ -1,11 +1,11 @@ -From b97efbfc1fa69802cadb69986f23dabaec0f2b60 Mon Sep 17 00:00:00 2001 +From e8b7ffb38699e5c3ec0be74c4a12aa2a475c0e0f Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 13 Apr 2014 09:00:59 +1000 Subject: [PATCH] Print Stack on InternalException diff --git a/src/main/java/net/minecraft/server/NetworkManager.java b/src/main/java/net/minecraft/server/NetworkManager.java -index 6bd1847..1c28c940 100644 +index 54298b4..27f1d0a 100644 --- a/src/main/java/net/minecraft/server/NetworkManager.java +++ b/src/main/java/net/minecraft/server/NetworkManager.java @@ -111,6 +111,7 @@ public class NetworkManager extends SimpleChannelInboundHandler { @@ -17,5 +17,5 @@ index 6bd1847..1c28c940 100644 protected void a(ChannelHandlerContext channelhandlercontext, Packet packet) throws Exception { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0102-Use-Offline-Player-Data-Once-if-Required.patch b/CraftBukkit-Patches/0101-Use-Offline-Player-Data-Once-if-Required.patch similarity index 95% rename from CraftBukkit-Patches/0102-Use-Offline-Player-Data-Once-if-Required.patch rename to CraftBukkit-Patches/0101-Use-Offline-Player-Data-Once-if-Required.patch index 95a84ed..4639fbd 100644 --- a/CraftBukkit-Patches/0102-Use-Offline-Player-Data-Once-if-Required.patch +++ b/CraftBukkit-Patches/0101-Use-Offline-Player-Data-Once-if-Required.patch @@ -1,4 +1,4 @@ -From c8420a0765b0a714c1039cfc23beff326095e41d Mon Sep 17 00:00:00 2001 +From 483b6a7711678c96fd193b60d8cbc4f8e623be31 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 13 Apr 2014 14:41:23 +1000 Subject: [PATCH] Use Offline Player Data Once if Required. @@ -6,7 +6,7 @@ Subject: [PATCH] Use Offline Player Data Once if Required. If we are online mode and the only copy of player data we can find is the player's offline mode data, we will attempt a once off conversion by reading this data and then renaming the file so it won't be used again. diff --git a/src/main/java/net/minecraft/server/WorldNBTStorage.java b/src/main/java/net/minecraft/server/WorldNBTStorage.java -index ae78fa2..bb87701 100644 +index 616b049..e4b3dd5 100644 --- a/src/main/java/net/minecraft/server/WorldNBTStorage.java +++ b/src/main/java/net/minecraft/server/WorldNBTStorage.java @@ -200,10 +200,28 @@ public class WorldNBTStorage implements IDataManager, IPlayerFileData { @@ -39,5 +39,5 @@ index ae78fa2..bb87701 100644 WorldNBTStorage.a.warn("Failed to load player data for " + entityhuman.getName()); } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0103-Use-Provided-Case-for-Non-Existent-Offline-Players.patch b/CraftBukkit-Patches/0102-Use-Provided-Case-for-Non-Existent-Offline-Players.patch similarity index 84% rename from CraftBukkit-Patches/0103-Use-Provided-Case-for-Non-Existent-Offline-Players.patch rename to CraftBukkit-Patches/0102-Use-Provided-Case-for-Non-Existent-Offline-Players.patch index dcb28c3..537dad0 100644 --- a/CraftBukkit-Patches/0103-Use-Provided-Case-for-Non-Existent-Offline-Players.patch +++ b/CraftBukkit-Patches/0102-Use-Provided-Case-for-Non-Existent-Offline-Players.patch @@ -1,14 +1,14 @@ -From b0b62228326699987f21bfca811d9599eb12a9bc Mon Sep 17 00:00:00 2001 +From 174979c8f3bb1360fa9958fa3d0b04453824edae Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 14 Apr 2014 09:46:20 +1000 Subject: [PATCH] Use Provided Case for Non Existent Offline Players diff --git a/src/main/java/net/minecraft/server/UserCache.java b/src/main/java/net/minecraft/server/UserCache.java -index f053f4e..2447b48 100644 +index 39e4a16..71a0edc 100644 --- a/src/main/java/net/minecraft/server/UserCache.java +++ b/src/main/java/net/minecraft/server/UserCache.java -@@ -143,7 +143,7 @@ public class UserCache { +@@ -142,7 +142,7 @@ public class UserCache { this.e.remove(gameprofile); this.e.addFirst(gameprofile); } else { @@ -18,5 +18,5 @@ index f053f4e..2447b48 100644 this.a(gameprofile); usercache_usercacheentry = (UserCache.UserCacheEntry) this.c.get(s1); -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0104-Check-for-blank-OfflinePlayer-Names.patch b/CraftBukkit-Patches/0103-Check-for-blank-OfflinePlayer-Names.patch similarity index 92% rename from CraftBukkit-Patches/0104-Check-for-blank-OfflinePlayer-Names.patch rename to CraftBukkit-Patches/0103-Check-for-blank-OfflinePlayer-Names.patch index 3bd5ac3..a3dd3a3 100644 --- a/CraftBukkit-Patches/0104-Check-for-blank-OfflinePlayer-Names.patch +++ b/CraftBukkit-Patches/0103-Check-for-blank-OfflinePlayer-Names.patch @@ -1,4 +1,4 @@ -From 1331c3b2affb8e6a5163d385f55e3215202009cc Mon Sep 17 00:00:00 2001 +From d38127d64dcbeb4c5293b998be89f534ca8516ab Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 14 Apr 2014 17:21:24 +1000 Subject: [PATCH] Check for blank OfflinePlayer Names @@ -17,5 +17,5 @@ index 238e282..982d95e 100644 // If the name given cannot ever be a valid username give a dummy return, for scoreboard plugins if (!validUserPattern.matcher(name).matches()) { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0105-Fix-Player-Banning.patch b/CraftBukkit-Patches/0104-Fix-Player-Banning.patch similarity index 96% rename from CraftBukkit-Patches/0105-Fix-Player-Banning.patch rename to CraftBukkit-Patches/0104-Fix-Player-Banning.patch index 47e71f6..7991cc8 100644 --- a/CraftBukkit-Patches/0105-Fix-Player-Banning.patch +++ b/CraftBukkit-Patches/0104-Fix-Player-Banning.patch @@ -1,4 +1,4 @@ -From 3f7e49b190a6cb0633327916850ca16e14b7022e Mon Sep 17 00:00:00 2001 +From 2a9d6bb882ba7e0efd67954dfc1cb644987855cf Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 15 Apr 2014 10:32:48 +1000 Subject: [PATCH] Fix Player Banning @@ -45,5 +45,5 @@ index 27ce9d9..e68d2b3 100644 } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0106-Fix-ban-expire-dates.patch b/CraftBukkit-Patches/0105-Fix-ban-expire-dates.patch similarity index 91% rename from CraftBukkit-Patches/0106-Fix-ban-expire-dates.patch rename to CraftBukkit-Patches/0105-Fix-ban-expire-dates.patch index 6fb8d8b..ddc8b81 100644 --- a/CraftBukkit-Patches/0106-Fix-ban-expire-dates.patch +++ b/CraftBukkit-Patches/0105-Fix-ban-expire-dates.patch @@ -1,4 +1,4 @@ -From 234394d984eb68b820d6c75c19b543e5eb9fa8b3 Mon Sep 17 00:00:00 2001 +From 2b3f6b1be1dfcf482f15082702c10a1fe29add20 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 16 Apr 2014 10:09:56 +1000 Subject: [PATCH] Fix ban expire dates. @@ -18,5 +18,5 @@ index e68d2b3..16fe481 100644 public GameProfileBanEntry(JsonObject jsonobject) { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0107-Correct-Ban-Expiration.patch b/CraftBukkit-Patches/0106-Correct-Ban-Expiration.patch similarity index 89% rename from CraftBukkit-Patches/0107-Correct-Ban-Expiration.patch rename to CraftBukkit-Patches/0106-Correct-Ban-Expiration.patch index 246ae1d..d9f7dec 100644 --- a/CraftBukkit-Patches/0107-Correct-Ban-Expiration.patch +++ b/CraftBukkit-Patches/0106-Correct-Ban-Expiration.patch @@ -1,11 +1,11 @@ -From 8bc77868d4f1cb91cd95e96c2eb14e6089b666a4 Mon Sep 17 00:00:00 2001 +From 4ae5cbb686d27576e4a9e69aee14e8a38a21f507 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 16 Apr 2014 11:14:38 +1000 Subject: [PATCH] Correct Ban Expiration diff --git a/src/main/java/net/minecraft/server/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java -index 0974884..517c210 100644 +index 7fead36..9902a61 100644 --- a/src/main/java/net/minecraft/server/PlayerList.java +++ b/src/main/java/net/minecraft/server/PlayerList.java @@ -415,7 +415,7 @@ public abstract class PlayerList { @@ -18,5 +18,5 @@ index 0974884..517c210 100644 // return "You are not white-listed on this server!"; event.disallow(PlayerLoginEvent.Result.KICK_WHITELIST, org.spigotmc.SpigotConfig.whitelistMessage); // Spigot -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0108-Convert-Horses-owner-to-UUID.patch b/CraftBukkit-Patches/0107-Convert-Horses-owner-to-UUID.patch similarity index 91% rename from CraftBukkit-Patches/0108-Convert-Horses-owner-to-UUID.patch rename to CraftBukkit-Patches/0107-Convert-Horses-owner-to-UUID.patch index 331a6e4..1692816 100644 --- a/CraftBukkit-Patches/0108-Convert-Horses-owner-to-UUID.patch +++ b/CraftBukkit-Patches/0107-Convert-Horses-owner-to-UUID.patch @@ -1,11 +1,11 @@ -From b2e969a74acdb2012fa3126d7ca404657b07fe88 Mon Sep 17 00:00:00 2001 +From 18aaf0292c9952426461b687fdfceaa3d1b38728 Mon Sep 17 00:00:00 2001 From: Aikar Date: Wed, 16 Apr 2014 01:40:30 -0400 Subject: [PATCH] Convert Horses owner to UUID diff --git a/src/main/java/net/minecraft/server/EntityHorse.java b/src/main/java/net/minecraft/server/EntityHorse.java -index 272028f..688099f 100644 +index 14cb7f1..0606319 100644 --- a/src/main/java/net/minecraft/server/EntityHorse.java +++ b/src/main/java/net/minecraft/server/EntityHorse.java @@ -1016,6 +1016,17 @@ public class EntityHorse extends EntityAnimal implements IInventoryListener { @@ -27,5 +27,5 @@ index 272028f..688099f 100644 s = NameReferencingFileConverter.a(s1); } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0109-Expand-team-API-to-allow-arbitrary-strings.patch b/CraftBukkit-Patches/0108-Expand-team-API-to-allow-arbitrary-strings.patch similarity index 98% rename from CraftBukkit-Patches/0109-Expand-team-API-to-allow-arbitrary-strings.patch rename to CraftBukkit-Patches/0108-Expand-team-API-to-allow-arbitrary-strings.patch index 9b65c1a..fb4b7f1 100644 --- a/CraftBukkit-Patches/0109-Expand-team-API-to-allow-arbitrary-strings.patch +++ b/CraftBukkit-Patches/0108-Expand-team-API-to-allow-arbitrary-strings.patch @@ -1,4 +1,4 @@ -From e8c345319601a2cfe17d166fbfc8288372e98358 Mon Sep 17 00:00:00 2001 +From a9834469302229f945a7bd8d5e7bf0985374dfb8 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 17 Apr 2014 19:22:22 +1000 Subject: [PATCH] Expand team API to allow arbitrary strings. @@ -112,5 +112,5 @@ index 342d4af..6b7233e 100644 } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0110-Add-Score.isScoreSet-Z-API.patch b/CraftBukkit-Patches/0109-Add-Score.isScoreSet-Z-API.patch similarity index 92% rename from CraftBukkit-Patches/0110-Add-Score.isScoreSet-Z-API.patch rename to CraftBukkit-Patches/0109-Add-Score.isScoreSet-Z-API.patch index ff0cdd7..a2c3a09 100644 --- a/CraftBukkit-Patches/0110-Add-Score.isScoreSet-Z-API.patch +++ b/CraftBukkit-Patches/0109-Add-Score.isScoreSet-Z-API.patch @@ -1,4 +1,4 @@ -From e061d5d5ddbe2ab2579f421f3c11edd5f10dcd95 Mon Sep 17 00:00:00 2001 +From e92208b06f24331eb606254e702b2715efe1d8e0 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 17 Apr 2014 19:35:53 +1000 Subject: [PATCH] Add Score.isScoreSet()Z API. @@ -21,5 +21,5 @@ index 0b71b53..ee9d2ae 100644 // Spigot end } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0111-Log-null-TileEntity-Owner.patch b/CraftBukkit-Patches/0110-Log-null-TileEntity-Owner.patch similarity index 94% rename from CraftBukkit-Patches/0111-Log-null-TileEntity-Owner.patch rename to CraftBukkit-Patches/0110-Log-null-TileEntity-Owner.patch index 91aa0dc..211f07c 100644 --- a/CraftBukkit-Patches/0111-Log-null-TileEntity-Owner.patch +++ b/CraftBukkit-Patches/0110-Log-null-TileEntity-Owner.patch @@ -1,4 +1,4 @@ -From c76a07b61cdec8a62244d6d36ab791e4655edc73 Mon Sep 17 00:00:00 2001 +From ca0b6d0e8c376a6223579a495cca33d765583c3e Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 20 Apr 2014 11:16:54 +1000 Subject: [PATCH] Log null TileEntity Owner @@ -25,5 +25,5 @@ index 02c9250..0de85da 100644 return null; } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0112-Don-t-special-case-invalid-usernames-for-UUIDs.patch b/CraftBukkit-Patches/0111-Don-t-special-case-invalid-usernames-for-UUIDs.patch similarity index 94% rename from CraftBukkit-Patches/0112-Don-t-special-case-invalid-usernames-for-UUIDs.patch rename to CraftBukkit-Patches/0111-Don-t-special-case-invalid-usernames-for-UUIDs.patch index 6891387..c6b60a6 100644 --- a/CraftBukkit-Patches/0112-Don-t-special-case-invalid-usernames-for-UUIDs.patch +++ b/CraftBukkit-Patches/0111-Don-t-special-case-invalid-usernames-for-UUIDs.patch @@ -1,4 +1,4 @@ -From 2bb8da0e1ed598251ffca3dc295891a538d77963 Mon Sep 17 00:00:00 2001 +From aaa0df014eabaeb61e1e9154c4bfad3dfe1a884a Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 20 Apr 2014 18:58:00 +1000 Subject: [PATCH] Don't special case 'invalid' usernames for UUIDs. @@ -21,5 +21,5 @@ index 982d95e..9328d8e 100644 if (result == null) { // This is potentially blocking :( -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0113-Convert-player-skulls-async.patch b/CraftBukkit-Patches/0112-Convert-player-skulls-async.patch similarity index 97% rename from CraftBukkit-Patches/0113-Convert-player-skulls-async.patch rename to CraftBukkit-Patches/0112-Convert-player-skulls-async.patch index 2ede26b..ddfa871 100644 --- a/CraftBukkit-Patches/0113-Convert-player-skulls-async.patch +++ b/CraftBukkit-Patches/0112-Convert-player-skulls-async.patch @@ -1,4 +1,4 @@ -From cd65935732ba58539230becf349e6e05db2c20cc Mon Sep 17 00:00:00 2001 +From 85dccedb527d58d2683cd71623e06c47bcfa7672 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Sun, 20 Apr 2014 13:18:55 +0100 Subject: [PATCH] Convert player skulls async @@ -34,7 +34,7 @@ index a46cfef..e710073 100644 } else { return false; diff --git a/src/main/java/net/minecraft/server/TileEntitySkull.java b/src/main/java/net/minecraft/server/TileEntitySkull.java -index 20efee7..64a9898 100644 +index 0048b65..58014c5 100644 --- a/src/main/java/net/minecraft/server/TileEntitySkull.java +++ b/src/main/java/net/minecraft/server/TileEntitySkull.java @@ -5,11 +5,78 @@ import com.mojang.authlib.GameProfile; @@ -103,7 +103,7 @@ index 20efee7..64a9898 100644 + + if ( property == null ) + { -+ profile = MinecraftServer.getServer().aC().fillProfileProperties( profile, true ); ++ profile = MinecraftServer.getServer().aD().fillProfileProperties( profile, true ); + } + } + @@ -129,7 +129,7 @@ index 20efee7..64a9898 100644 + + @Override + public boolean apply(GameProfile input) { -+ setSkullType( 3 ); // Work around client bug ++ setSkullType(3); // Work around client bug + g = input; + update(); + if (world != null) { @@ -163,7 +163,7 @@ index 20efee7..64a9898 100644 - Property property = (Property) Iterables.getFirst(gameprofile1.getProperties().get("textures"), (Object) null); - - if (property == null) { -- gameprofile1 = MinecraftServer.getServer().aC().fillProfileProperties(gameprofile1, true); +- gameprofile1 = MinecraftServer.getServer().aD().fillProfileProperties(gameprofile1, true); - } - - return gameprofile1; @@ -229,5 +229,5 @@ index 89912bc..848a6f9 100644 } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0114-Prevent-NoClassDefError-crash-and-notify-on-crash.patch b/CraftBukkit-Patches/0113-Prevent-NoClassDefError-crash-and-notify-on-crash.patch similarity index 96% rename from CraftBukkit-Patches/0114-Prevent-NoClassDefError-crash-and-notify-on-crash.patch rename to CraftBukkit-Patches/0113-Prevent-NoClassDefError-crash-and-notify-on-crash.patch index b0147bd..e3aaa6e 100644 --- a/CraftBukkit-Patches/0114-Prevent-NoClassDefError-crash-and-notify-on-crash.patch +++ b/CraftBukkit-Patches/0113-Prevent-NoClassDefError-crash-and-notify-on-crash.patch @@ -1,11 +1,11 @@ -From 4e446e75857b4c705efde01ab2789cd4be76fe2f Mon Sep 17 00:00:00 2001 +From b7457c9891261dd6e5463ff2a75dff704fe98b0d Mon Sep 17 00:00:00 2001 From: David Date: Mon, 21 Apr 2014 12:43:08 +0100 Subject: [PATCH] Prevent NoClassDefError crash and notify on crash diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java -index 502a432..156b5c3 100644 +index 6dc0f2e..6e78b47 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -135,6 +135,8 @@ public abstract class World implements IBlockAccess { @@ -46,5 +46,5 @@ index de08ad6..94a3d42 100644 log.log( Level.SEVERE, "Server thread dump (Look for plugins here before reporting to Spigot!):" ); dumpThread( ManagementFactory.getThreadMXBean().getThreadInfo( MinecraftServer.getServer().primaryThread.getId(), Integer.MAX_VALUE ), log ); -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0115-Check-Skull-canPlace.patch b/CraftBukkit-Patches/0114-Check-Skull-canPlace.patch similarity index 92% rename from CraftBukkit-Patches/0115-Check-Skull-canPlace.patch rename to CraftBukkit-Patches/0114-Check-Skull-canPlace.patch index 7979524..7b8414e 100644 --- a/CraftBukkit-Patches/0115-Check-Skull-canPlace.patch +++ b/CraftBukkit-Patches/0114-Check-Skull-canPlace.patch @@ -1,4 +1,4 @@ -From aad0273b5a2680527b12096b4492266fd6446406 Mon Sep 17 00:00:00 2001 +From 7d686f41eb826f161815614c9385a544fd734692 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 15 Apr 2014 10:48:35 +1000 Subject: [PATCH] Check Skull canPlace @@ -22,5 +22,5 @@ index e710073..519574b 100644 int i = 0; -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0116-Fix-race-condition-that-could-kill-connections-befor.patch b/CraftBukkit-Patches/0115-Fix-race-condition-that-could-kill-connections-befor.patch similarity index 88% rename from CraftBukkit-Patches/0116-Fix-race-condition-that-could-kill-connections-befor.patch rename to CraftBukkit-Patches/0115-Fix-race-condition-that-could-kill-connections-befor.patch index 7f4339d..8f05c4a 100644 --- a/CraftBukkit-Patches/0116-Fix-race-condition-that-could-kill-connections-befor.patch +++ b/CraftBukkit-Patches/0115-Fix-race-condition-that-could-kill-connections-befor.patch @@ -1,4 +1,4 @@ -From 4af762565ba778a9625515afb68142c255a6249e Mon Sep 17 00:00:00 2001 +From 6c36f9e1b3eb083bd511ce69dd8d6b6313406cb6 Mon Sep 17 00:00:00 2001 From: Jonas Konrad Date: Fri, 25 Apr 2014 23:46:46 +0200 Subject: [PATCH] Fix race condition that could kill connections before they @@ -12,7 +12,7 @@ initialized. The ServerConnection does not remove NetworkManagers with this flag. diff --git a/src/main/java/net/minecraft/server/NetworkManager.java b/src/main/java/net/minecraft/server/NetworkManager.java -index 1c28c940..c71150a 100644 +index 27f1d0a..8430a46 100644 --- a/src/main/java/net/minecraft/server/NetworkManager.java +++ b/src/main/java/net/minecraft/server/NetworkManager.java @@ -68,6 +68,7 @@ public class NetworkManager extends SimpleChannelInboundHandler { @@ -25,8 +25,8 @@ index 1c28c940..c71150a 100644 private IChatBaseComponent n; @@ -82,6 +83,9 @@ public class NetworkManager extends SimpleChannelInboundHandler { super.channelActive(channelhandlercontext); - this.k = channelhandlercontext.channel(); - this.l = this.k.remoteAddress(); + this.channel = channelhandlercontext.channel(); + this.l = this.channel.remoteAddress(); + // Spigot Start + this.preparing = false; + // Spigot End @@ -40,8 +40,8 @@ index 1c28c940..c71150a 100644 + // Spigot Start + this.preparing = false; + // Spigot End - if (this.k.isOpen()) { - this.k.close(); // We can't wait as this may be called from an event loop. + if (this.channel.isOpen()) { + this.channel.close(); // We can't wait as this may be called from an event loop. this.n = ichatbasecomponent; diff --git a/src/main/java/net/minecraft/server/ServerConnection.java b/src/main/java/net/minecraft/server/ServerConnection.java index 931ab66..2708d64 100644 @@ -59,5 +59,5 @@ index 931ab66..2708d64 100644 networkmanager.l(); } else { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0117-Configurable-UserCache-cap.patch b/CraftBukkit-Patches/0116-Configurable-UserCache-cap.patch similarity index 89% rename from CraftBukkit-Patches/0117-Configurable-UserCache-cap.patch rename to CraftBukkit-Patches/0116-Configurable-UserCache-cap.patch index 1454137..a2d417e 100644 --- a/CraftBukkit-Patches/0117-Configurable-UserCache-cap.patch +++ b/CraftBukkit-Patches/0116-Configurable-UserCache-cap.patch @@ -1,14 +1,14 @@ -From 38088eb02debcff5e0cc37d72587c2730a366f4c Mon Sep 17 00:00:00 2001 +From 6ff4caaa7418837d61d41135d1253b1b02b22e46 Mon Sep 17 00:00:00 2001 From: drXor Date: Fri, 25 Apr 2014 18:17:30 -0400 Subject: [PATCH] Configurable UserCache cap diff --git a/src/main/java/net/minecraft/server/UserCache.java b/src/main/java/net/minecraft/server/UserCache.java -index 2447b48..9e36258 100644 +index 71a0edc..41e297f 100644 --- a/src/main/java/net/minecraft/server/UserCache.java +++ b/src/main/java/net/minecraft/server/UserCache.java -@@ -216,7 +216,7 @@ public class UserCache { +@@ -208,7 +208,7 @@ public class UserCache { } public void c() { @@ -33,5 +33,5 @@ index 4932990..d416087 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0118-Implement-PlayerSpawnLocationEvent.patch b/CraftBukkit-Patches/0117-Implement-PlayerSpawnLocationEvent.patch similarity index 94% rename from CraftBukkit-Patches/0118-Implement-PlayerSpawnLocationEvent.patch rename to CraftBukkit-Patches/0117-Implement-PlayerSpawnLocationEvent.patch index e864815..083b519 100644 --- a/CraftBukkit-Patches/0118-Implement-PlayerSpawnLocationEvent.patch +++ b/CraftBukkit-Patches/0117-Implement-PlayerSpawnLocationEvent.patch @@ -1,11 +1,11 @@ -From 75fb56e0dc08a7b1db33621c4edfedf861de2a39 Mon Sep 17 00:00:00 2001 +From abf8eda955f99d7842678561f46d057addd1f640 Mon Sep 17 00:00:00 2001 From: ninja Date: Tue, 8 Apr 2014 14:05:19 +0200 Subject: [PATCH] Implement PlayerSpawnLocationEvent. diff --git a/src/main/java/net/minecraft/server/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java -index 517c210..49a14ea 100644 +index 9902a61..4e78341 100644 --- a/src/main/java/net/minecraft/server/PlayerList.java +++ b/src/main/java/net/minecraft/server/PlayerList.java @@ -36,6 +36,7 @@ import org.bukkit.event.player.PlayerQuitEvent; @@ -37,5 +37,5 @@ index 517c210..49a14ea 100644 // PlayerList.f.info(entityplayer.getName() + "[" + s1 + "] logged in with entity id " + entityplayer.getId() + " at (" + entityplayer.locX + ", " + entityplayer.locY + ", " + entityplayer.locZ + ")"); WorldServer worldserver = this.server.getWorldServer(entityplayer.dimension); -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0119-Cap-Objective-Score-Length.patch b/CraftBukkit-Patches/0118-Cap-Objective-Score-Length.patch similarity index 93% rename from CraftBukkit-Patches/0119-Cap-Objective-Score-Length.patch rename to CraftBukkit-Patches/0118-Cap-Objective-Score-Length.patch index 6461792..6edda9d 100644 --- a/CraftBukkit-Patches/0119-Cap-Objective-Score-Length.patch +++ b/CraftBukkit-Patches/0118-Cap-Objective-Score-Length.patch @@ -1,4 +1,4 @@ -From 4776677e99a478be00fda65a0108999c8584524a Mon Sep 17 00:00:00 2001 +From 604ea346f15eb6c4f772640ef3a0a633a362c15d Mon Sep 17 00:00:00 2001 From: hauno Date: Tue, 6 May 2014 18:01:37 -0700 Subject: [PATCH] Cap Objective Score Length @@ -18,5 +18,5 @@ index 239ceca..5bd8cf9 100644 return new CraftScore(this, entry); -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0120-Process-conversation-input-on-the-main-thread.-Fixes.patch b/CraftBukkit-Patches/0119-Process-conversation-input-on-the-main-thread.-Fixes.patch similarity index 89% rename from CraftBukkit-Patches/0120-Process-conversation-input-on-the-main-thread.-Fixes.patch rename to CraftBukkit-Patches/0119-Process-conversation-input-on-the-main-thread.-Fixes.patch index 56e9e26..717a61d 100644 --- a/CraftBukkit-Patches/0120-Process-conversation-input-on-the-main-thread.-Fixes.patch +++ b/CraftBukkit-Patches/0119-Process-conversation-input-on-the-main-thread.-Fixes.patch @@ -1,4 +1,4 @@ -From e323209d6bb5583e741a3573d8b1993a19d740ef Mon Sep 17 00:00:00 2001 +From cde15c0e44297ed0baecaab3b6738427f6fa03fd Mon Sep 17 00:00:00 2001 From: riking Date: Wed, 14 May 2014 13:46:48 -0700 Subject: [PATCH] Process conversation input on the main thread. Fixes @@ -6,10 +6,10 @@ Subject: [PATCH] Process conversation input on the main thread. Fixes diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java -index fbab12e..c46e943 100644 +index ddd03f5..5aff880 100644 --- a/src/main/java/net/minecraft/server/PlayerConnection.java +++ b/src/main/java/net/minecraft/server/PlayerConnection.java -@@ -960,7 +960,18 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList +@@ -956,7 +956,18 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList } else if (s.isEmpty()) { c.warn(this.player.getName() + " tried to send an empty message"); } else if (getPlayer().isConversing()) { @@ -30,5 +30,5 @@ index fbab12e..c46e943 100644 ChatMessage chatmessage = new ChatMessage("chat.cannotSend", new Object[0]); -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0121-Configurable-save-on-stop-only-for-UserCache.patch b/CraftBukkit-Patches/0120-Configurable-save-on-stop-only-for-UserCache.patch similarity index 88% rename from CraftBukkit-Patches/0121-Configurable-save-on-stop-only-for-UserCache.patch rename to CraftBukkit-Patches/0120-Configurable-save-on-stop-only-for-UserCache.patch index cd70841..a89ade6 100644 --- a/CraftBukkit-Patches/0121-Configurable-save-on-stop-only-for-UserCache.patch +++ b/CraftBukkit-Patches/0120-Configurable-save-on-stop-only-for-UserCache.patch @@ -1,14 +1,14 @@ -From 7fd7b2e86bf025fe588f1c186b4e514f43358024 Mon Sep 17 00:00:00 2001 +From c06e01709cb85b4d1317028a5e362c3ee24bf43f Mon Sep 17 00:00:00 2001 From: drXor Date: Fri, 23 May 2014 18:05:10 -0400 Subject: [PATCH] Configurable save-on-stop-only for UserCache diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 2cb938c..b2a7219 100644 +index 0dbe68c..17dbe9f 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -483,7 +483,13 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -489,7 +489,13 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs if (this.n.d()) { this.n.e(); } @@ -24,10 +24,10 @@ index 2cb938c..b2a7219 100644 } diff --git a/src/main/java/net/minecraft/server/UserCache.java b/src/main/java/net/minecraft/server/UserCache.java -index 9e36258..b8cde5d 100644 +index 41e297f..6f464be 100644 --- a/src/main/java/net/minecraft/server/UserCache.java +++ b/src/main/java/net/minecraft/server/UserCache.java -@@ -150,7 +150,7 @@ public class UserCache { +@@ -149,7 +149,7 @@ public class UserCache { } } @@ -52,5 +52,5 @@ index d416087..78dcb39 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0122-Prevent-Unbounded-IntCache-Growth.patch b/CraftBukkit-Patches/0121-Prevent-Unbounded-IntCache-Growth.patch similarity index 97% rename from CraftBukkit-Patches/0122-Prevent-Unbounded-IntCache-Growth.patch rename to CraftBukkit-Patches/0121-Prevent-Unbounded-IntCache-Growth.patch index 4e17152..9dd1951 100644 --- a/CraftBukkit-Patches/0122-Prevent-Unbounded-IntCache-Growth.patch +++ b/CraftBukkit-Patches/0121-Prevent-Unbounded-IntCache-Growth.patch @@ -1,4 +1,4 @@ -From 086c7fac0b35f3398ef3019fa359565d5dd43d16 Mon Sep 17 00:00:00 2001 +From 84a067c62c724b0c4b376cb6aa0ba0f94a2a9330 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 20 Jun 2014 19:40:00 +1000 Subject: [PATCH] Prevent Unbounded IntCache Growth @@ -58,5 +58,5 @@ index 78dcb39..c5e995b 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0123-Add-damager-to-the-unhandled-error.patch b/CraftBukkit-Patches/0122-Add-damager-to-the-unhandled-error.patch similarity index 97% rename from CraftBukkit-Patches/0123-Add-damager-to-the-unhandled-error.patch rename to CraftBukkit-Patches/0122-Add-damager-to-the-unhandled-error.patch index 3e99a2c..4fd0bc7 100644 --- a/CraftBukkit-Patches/0123-Add-damager-to-the-unhandled-error.patch +++ b/CraftBukkit-Patches/0122-Add-damager-to-the-unhandled-error.patch @@ -1,4 +1,4 @@ -From 97810be397989619822db3a86c28981216c5d80c Mon Sep 17 00:00:00 2001 +From cd1a37fa59c34f7ebc5506b1878460d71d47b384 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Thu, 26 Jun 2014 23:42:52 +0100 Subject: [PATCH] Add damager to the unhandled error @@ -45,5 +45,5 @@ index c5eca56..211c421 100644 private static EntityDamageEvent callEntityDamageEvent(Entity damager, Entity damagee, DamageCause cause, Map modifiers, Map> modifierFunctions) { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0124-Cross-World-Entity-Teleportation.patch b/CraftBukkit-Patches/0123-Cross-World-Entity-Teleportation.patch similarity index 94% rename from CraftBukkit-Patches/0124-Cross-World-Entity-Teleportation.patch rename to CraftBukkit-Patches/0123-Cross-World-Entity-Teleportation.patch index 45f5b74..51ba8b0 100644 --- a/CraftBukkit-Patches/0124-Cross-World-Entity-Teleportation.patch +++ b/CraftBukkit-Patches/0123-Cross-World-Entity-Teleportation.patch @@ -1,4 +1,4 @@ -From 51854cf382ae9ba6fe8a2da3151479ec09b5bb9c Mon Sep 17 00:00:00 2001 +From d28402786a1663f14fce8845322c7f5db10161b9 Mon Sep 17 00:00:00 2001 From: Andrew Krieger Date: Tue, 24 Dec 2013 07:55:23 -0800 Subject: [PATCH] Cross World Entity Teleportation @@ -26,5 +26,5 @@ index 9df27e3..9030f2c 100644 // entity.setLocation() throws no event, and so cannot be cancelled return true; -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0125-Limit-block-placement-interaction-packets.patch b/CraftBukkit-Patches/0124-Limit-block-placement-interaction-packets.patch similarity index 72% rename from CraftBukkit-Patches/0125-Limit-block-placement-interaction-packets.patch rename to CraftBukkit-Patches/0124-Limit-block-placement-interaction-packets.patch index ea8f351..af3510a 100644 --- a/CraftBukkit-Patches/0125-Limit-block-placement-interaction-packets.patch +++ b/CraftBukkit-Patches/0124-Limit-block-placement-interaction-packets.patch @@ -1,11 +1,11 @@ -From 4d08e72d67e499a79d97a6702f8db54fe287496e Mon Sep 17 00:00:00 2001 +From c620fb272cc4d300b0507a23895288e3569be0d1 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Sun, 29 Jun 2014 21:10:34 +0100 Subject: [PATCH] Limit block placement/interaction packets diff --git a/src/main/java/net/minecraft/server/PacketPlayInArmAnimation.java b/src/main/java/net/minecraft/server/PacketPlayInArmAnimation.java -index c611db1..28cb5e3 100644 +index 920d4ec..639c59b 100644 --- a/src/main/java/net/minecraft/server/PacketPlayInArmAnimation.java +++ b/src/main/java/net/minecraft/server/PacketPlayInArmAnimation.java @@ -4,9 +4,13 @@ import java.io.IOException; @@ -24,10 +24,10 @@ index c611db1..28cb5e3 100644 public void b(PacketDataSerializer packetdataserializer) throws IOException {} diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java -index c46e943..b64503d 100644 +index 5aff880..3a3ebfd 100644 --- a/src/main/java/net/minecraft/server/PlayerConnection.java +++ b/src/main/java/net/minecraft/server/PlayerConnection.java -@@ -632,10 +632,23 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList +@@ -628,9 +628,22 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList // CraftBukkit end } @@ -38,7 +38,6 @@ index c46e943..b64503d 100644 public void a(PacketPlayInBlockPlace packetplayinblockplace) { PlayerConnectionUtils.ensureMainThread(packetplayinblockplace, this, this.player.u()); WorldServer worldserver = this.minecraftServer.getWorldServer(this.player.dimension); -- + boolean throttled = false; + if (lastPlace != -1 && packetplayinblockplace.timestamp - lastPlace < 30 && packets++ >= 4) { + throttled = true; @@ -48,11 +47,10 @@ index c46e943..b64503d 100644 + packets = 0; + } + // Spigot end -+ + // CraftBukkit start if (this.player.dead) return; - -@@ -658,7 +671,8 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList +@@ -654,7 +667,8 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList // CraftBukkit start int itemstackAmount = itemstack.count; @@ -62,7 +60,7 @@ index c46e943..b64503d 100644 // Raytrace to look for 'rogue armswings' float f1 = this.player.pitch; float f2 = this.player.yaw; -@@ -694,6 +708,8 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList +@@ -690,6 +704,8 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList if (!cancelled) { this.player.playerInteractManager.useItem(this.player, this.player.world, itemstack); } @@ -71,7 +69,7 @@ index c46e943..b64503d 100644 // CraftBukkit - notch decrements the counter by 1 in the above method with food, // snowballs and so forth, but he does it in a place that doesn't cause the -@@ -719,7 +735,7 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList +@@ -715,7 +731,7 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList } if (this.checkMovement && this.player.e((double) blockposition.getX() + 0.5D, (double) blockposition.getY() + 0.5D, (double) blockposition.getZ() + 0.5D) < 64.0D && !this.minecraftServer.a(worldserver, blockposition, this.player) && worldserver.getWorldBorder().a(blockposition)) { @@ -80,26 +78,6 @@ index c46e943..b64503d 100644 } flag = true; -@@ -1136,6 +1152,19 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList - public void a(PacketPlayInArmAnimation packetplayinarmanimation) { - if (this.player.dead) return; // CraftBukkit - PlayerConnectionUtils.ensureMainThread(packetplayinarmanimation, this, this.player.u()); -+ // Spigot start -+ boolean throttled = false; -+ if (lastPlace != -1 && packetplayinarmanimation.timestamp - lastPlace < 30 && packets++ >= 4) { -+ throttled = true; -+ } else if ( packetplayinarmanimation.timestamp - lastPlace >= 30 || lastPlace == -1 ) -+ { -+ lastPlace = packetplayinarmanimation.timestamp; -+ packets = 0; -+ } -+ if (throttled) { -+ return; -+ } -+ // Spigot end - this.player.z(); - // CraftBukkit start - Raytrace to look for 'rogue armswings' - float f1 = this.player.pitch; -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0126-Better-item-validation.patch b/CraftBukkit-Patches/0125-Better-item-validation.patch similarity index 98% rename from CraftBukkit-Patches/0126-Better-item-validation.patch rename to CraftBukkit-Patches/0125-Better-item-validation.patch index 1e8f7b2..b7a89f9 100644 --- a/CraftBukkit-Patches/0126-Better-item-validation.patch +++ b/CraftBukkit-Patches/0125-Better-item-validation.patch @@ -1,4 +1,4 @@ -From c02583cfbdf7d21f05143d08754d5a06ed8c8cb5 Mon Sep 17 00:00:00 2001 +From db3153ad7ba5dee206761df0d08b82e73a03868b Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Wed, 2 Jul 2014 23:35:51 +0100 Subject: [PATCH] Better item validation @@ -155,5 +155,5 @@ index 0000000..58a9534 + } +} -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0127-Further-Seed-Customisation.patch b/CraftBukkit-Patches/0126-Further-Seed-Customisation.patch similarity index 96% rename from CraftBukkit-Patches/0127-Further-Seed-Customisation.patch rename to CraftBukkit-Patches/0126-Further-Seed-Customisation.patch index c67cccc..d2ae921 100644 --- a/CraftBukkit-Patches/0127-Further-Seed-Customisation.patch +++ b/CraftBukkit-Patches/0126-Further-Seed-Customisation.patch @@ -1,4 +1,4 @@ -From 537959c7d0ad337d60243c77eedb7d894bad2fb8 Mon Sep 17 00:00:00 2001 +From 5deaed19e977732ddc3b7387a6a33c42091291e6 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 4 Jul 2014 13:28:45 +1000 Subject: [PATCH] Further Seed Customisation @@ -50,5 +50,5 @@ index c06084d..d644922 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0128-Disable-ResourceLeakDetector.patch b/CraftBukkit-Patches/0127-Disable-ResourceLeakDetector.patch similarity index 90% rename from CraftBukkit-Patches/0128-Disable-ResourceLeakDetector.patch rename to CraftBukkit-Patches/0127-Disable-ResourceLeakDetector.patch index 40c7701..83ac500 100644 --- a/CraftBukkit-Patches/0128-Disable-ResourceLeakDetector.patch +++ b/CraftBukkit-Patches/0127-Disable-ResourceLeakDetector.patch @@ -1,4 +1,4 @@ -From 060e5ef2768d905c9335df98bdb2059512830e5d Mon Sep 17 00:00:00 2001 +From 20494e2a76f3b8be5bbf522c6a813b911bbc91f8 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 8 Jul 2014 09:01:50 +1000 Subject: [PATCH] Disable ResourceLeakDetector @@ -6,7 +6,7 @@ Subject: [PATCH] Disable ResourceLeakDetector Hopefully no plugins are somehow leaking buffers, but disabling the ResourceLeakDetector is a good thing for performance of the Netty IO subsytem (it's been disabled in BungeeCord for a while now). diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index b2a7219..88640a5 100644 +index 17dbe9f..517c4c2 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -128,6 +128,7 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs @@ -18,5 +18,5 @@ index b2a7219..88640a5 100644 MinecraftServer.l = this; // this.universe = file; // CraftBukkit -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0129-Add-More-Information-to-session.lock-Errors.patch b/CraftBukkit-Patches/0128-Add-More-Information-to-session.lock-Errors.patch similarity index 94% rename from CraftBukkit-Patches/0129-Add-More-Information-to-session.lock-Errors.patch rename to CraftBukkit-Patches/0128-Add-More-Information-to-session.lock-Errors.patch index 21718ae..6dd6259 100644 --- a/CraftBukkit-Patches/0129-Add-More-Information-to-session.lock-Errors.patch +++ b/CraftBukkit-Patches/0128-Add-More-Information-to-session.lock-Errors.patch @@ -1,11 +1,11 @@ -From 6430319d6cf29a95202f3668d4a50ebea71ef2a3 Mon Sep 17 00:00:00 2001 +From 84aa7c1645966957f4ec04363412db28cea1b7f3 Mon Sep 17 00:00:00 2001 From: Suddenly Date: Sat, 5 Jul 2014 16:56:44 +0100 Subject: [PATCH] Add More Information to session.lock Errors diff --git a/src/main/java/net/minecraft/server/WorldNBTStorage.java b/src/main/java/net/minecraft/server/WorldNBTStorage.java -index bb87701..007846a 100644 +index e4b3dd5..7c51750 100644 --- a/src/main/java/net/minecraft/server/WorldNBTStorage.java +++ b/src/main/java/net/minecraft/server/WorldNBTStorage.java @@ -54,7 +54,7 @@ public class WorldNBTStorage implements IDataManager, IPlayerFileData { @@ -35,5 +35,5 @@ index bb87701..007846a 100644 } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0130-Safer-JSON-Loading.patch b/CraftBukkit-Patches/0129-Safer-JSON-Loading.patch similarity index 71% rename from CraftBukkit-Patches/0130-Safer-JSON-Loading.patch rename to CraftBukkit-Patches/0129-Safer-JSON-Loading.patch index 5a7ba8c..24c81c9 100644 --- a/CraftBukkit-Patches/0130-Safer-JSON-Loading.patch +++ b/CraftBukkit-Patches/0129-Safer-JSON-Loading.patch @@ -1,4 +1,4 @@ -From c9dd26c427b456a1ddfb9a7c4ed82f3e38af69dc Mon Sep 17 00:00:00 2001 +From e661cafe08b0bc2edbb88d8376cfa3e5c7dd8a88 Mon Sep 17 00:00:00 2001 From: Suddenly Date: Tue, 8 Jul 2014 09:44:18 +1000 Subject: [PATCH] Safer JSON Loading @@ -27,21 +27,21 @@ index f5c3aae..8e4ecfd 100644 IOUtils.closeQuietly(bufferedreader); } diff --git a/src/main/java/net/minecraft/server/UserCache.java b/src/main/java/net/minecraft/server/UserCache.java -index b8cde5d..441d1bc 100644 +index 6f464be..e95d93f 100644 --- a/src/main/java/net/minecraft/server/UserCache.java +++ b/src/main/java/net/minecraft/server/UserCache.java -@@ -190,6 +190,11 @@ public class UserCache { - break label64; - } catch (FileNotFoundException filenotfoundexception) { - ; -+ // Spigot Start -+ } catch (com.google.gson.JsonSyntaxException ex) { -+ JsonList.a.warn( "Usercache.json is corrupted or has bad formatting. Deleting it to prevent further issues." ); -+ this.g.delete(); -+ // Spigot End - } finally { - IOUtils.closeQuietly(bufferedreader); +@@ -199,6 +199,11 @@ public class UserCache { } + } catch (FileNotFoundException filenotfoundexception) { + ; ++ // Spigot Start ++ } catch (com.google.gson.JsonSyntaxException ex) { ++ JsonList.a.warn( "Usercache.json is corrupted or has bad formatting. Deleting it to prevent further issues." ); ++ this.g.delete(); ++ // Spigot End + } catch (JsonParseException jsonparseexception) { + ; + } finally { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0131-Fix-Slow-Loading-Libraries.patch b/CraftBukkit-Patches/0130-Fix-Slow-Loading-Libraries.patch similarity index 89% rename from CraftBukkit-Patches/0131-Fix-Slow-Loading-Libraries.patch rename to CraftBukkit-Patches/0130-Fix-Slow-Loading-Libraries.patch index 31a6b1f..0792e8c 100644 --- a/CraftBukkit-Patches/0131-Fix-Slow-Loading-Libraries.patch +++ b/CraftBukkit-Patches/0130-Fix-Slow-Loading-Libraries.patch @@ -1,4 +1,4 @@ -From f8c8dbc8c9e208116b70109527eb3463dfd88497 Mon Sep 17 00:00:00 2001 +From 5019b35b4b5a8af507d9fb44b44e9cec0b7e098b Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 8 Jul 2014 20:27:52 +1000 Subject: [PATCH] Fix Slow "Loading Libraries" @@ -16,5 +16,5 @@ index 36eff85..08d68aa 100644 -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0132-Add-CommandLine-EULA-Flag.patch b/CraftBukkit-Patches/0131-Add-CommandLine-EULA-Flag.patch similarity index 95% rename from CraftBukkit-Patches/0132-Add-CommandLine-EULA-Flag.patch rename to CraftBukkit-Patches/0131-Add-CommandLine-EULA-Flag.patch index f4f0716..3bef17c 100644 --- a/CraftBukkit-Patches/0132-Add-CommandLine-EULA-Flag.patch +++ b/CraftBukkit-Patches/0131-Add-CommandLine-EULA-Flag.patch @@ -1,4 +1,4 @@ -From 5a48150450b6056c6dd8a3cf29a508e76448637e Mon Sep 17 00:00:00 2001 +From d3aff1201d5ea51e44a6c6b1e34aef7fdb2678cb Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 9 Jul 2014 10:35:44 +1000 Subject: [PATCH] Add CommandLine EULA Flag @@ -8,7 +8,7 @@ This flag contains the same message as eula.txt (albeit with proper grammar for This feature only exists for hosting companies and people who manage servers in bulk who wish to agree to the terms by setting a flag in a script. diff --git a/src/main/java/net/minecraft/server/DedicatedServer.java b/src/main/java/net/minecraft/server/DedicatedServer.java -index 28135ba..86ff385 100644 +index 9bba97b..99920b0 100644 --- a/src/main/java/net/minecraft/server/DedicatedServer.java +++ b/src/main/java/net/minecraft/server/DedicatedServer.java @@ -124,7 +124,16 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer @@ -30,5 +30,5 @@ index 28135ba..86ff385 100644 this.p.b(); return false; -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0133-Fix-for-enchanting-table-wiping-meta-when-placing-st.patch b/CraftBukkit-Patches/0132-Fix-for-enchanting-table-wiping-meta-when-placing-st.patch similarity index 94% rename from CraftBukkit-Patches/0133-Fix-for-enchanting-table-wiping-meta-when-placing-st.patch rename to CraftBukkit-Patches/0132-Fix-for-enchanting-table-wiping-meta-when-placing-st.patch index 00743b3..c4b5d0f 100644 --- a/CraftBukkit-Patches/0133-Fix-for-enchanting-table-wiping-meta-when-placing-st.patch +++ b/CraftBukkit-Patches/0132-Fix-for-enchanting-table-wiping-meta-when-placing-st.patch @@ -1,4 +1,4 @@ -From d7aaaa663acfbe1b875086e1d429024b9790ac5e Mon Sep 17 00:00:00 2001 +From 9645888aa9221d2b98d8005e45029a7dfd23cf23 Mon Sep 17 00:00:00 2001 From: drXor Date: Thu, 17 Jul 2014 21:13:15 -0400 Subject: [PATCH] Fix for enchanting table wiping meta when placing stacked @@ -23,5 +23,5 @@ index 208d426..09eeb43 100644 } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0134-Don-t-spawn-bonus-ocelots-when-plugins-spawn-ocelots.patch b/CraftBukkit-Patches/0133-Don-t-spawn-bonus-ocelots-when-plugins-spawn-ocelots.patch similarity index 95% rename from CraftBukkit-Patches/0134-Don-t-spawn-bonus-ocelots-when-plugins-spawn-ocelots.patch rename to CraftBukkit-Patches/0133-Don-t-spawn-bonus-ocelots-when-plugins-spawn-ocelots.patch index 0799c4c..0fa0507 100644 --- a/CraftBukkit-Patches/0134-Don-t-spawn-bonus-ocelots-when-plugins-spawn-ocelots.patch +++ b/CraftBukkit-Patches/0133-Don-t-spawn-bonus-ocelots-when-plugins-spawn-ocelots.patch @@ -1,11 +1,11 @@ -From 5d42af4a176141bd9b418a5a227dc42d40fa346a Mon Sep 17 00:00:00 2001 +From 5dc1fb32f125bad447fa11b195e6aa979b9a91ff Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Sat, 19 Jul 2014 12:49:48 +0100 Subject: [PATCH] Don't spawn bonus ocelots when plugins spawn ocelots diff --git a/src/main/java/net/minecraft/server/EntityOcelot.java b/src/main/java/net/minecraft/server/EntityOcelot.java -index 84c8721..ea5adbe 100644 +index 2121438..edcb307 100644 --- a/src/main/java/net/minecraft/server/EntityOcelot.java +++ b/src/main/java/net/minecraft/server/EntityOcelot.java @@ -6,6 +6,7 @@ public class EntityOcelot extends EntityTameableAnimal { @@ -43,5 +43,5 @@ index a3e8d48..db0697b 100644 ((EntityInsentient) entity).prepare(getHandle().E(new BlockPosition(entity)), (GroupDataEntity) null); } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0135-Prevent-a-crash-involving-attributes.patch b/CraftBukkit-Patches/0134-Prevent-a-crash-involving-attributes.patch similarity index 93% rename from CraftBukkit-Patches/0135-Prevent-a-crash-involving-attributes.patch rename to CraftBukkit-Patches/0134-Prevent-a-crash-involving-attributes.patch index 9d421c5..49063b4 100644 --- a/CraftBukkit-Patches/0135-Prevent-a-crash-involving-attributes.patch +++ b/CraftBukkit-Patches/0134-Prevent-a-crash-involving-attributes.patch @@ -1,11 +1,11 @@ -From 06719fa3bc00c0535fbd2a6b97d01575a990739b Mon Sep 17 00:00:00 2001 +From d4c66f8778c098c3f11cce5f44deb3d776f88155 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Sat, 19 Jul 2014 19:54:41 +0100 Subject: [PATCH] Prevent a crash involving attributes diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -index 306ac63..92df378 100644 +index 912ac14..50761d7 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -1311,7 +1311,15 @@ public class CraftPlayer extends CraftHumanEntity implements Player { @@ -26,5 +26,5 @@ index 306ac63..92df378 100644 // Spigot start -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0136-Make-moved-wrongly-limit-configurable.patch b/CraftBukkit-Patches/0135-Make-moved-wrongly-limit-configurable.patch similarity index 80% rename from CraftBukkit-Patches/0136-Make-moved-wrongly-limit-configurable.patch rename to CraftBukkit-Patches/0135-Make-moved-wrongly-limit-configurable.patch index 7514919..070819a 100644 --- a/CraftBukkit-Patches/0136-Make-moved-wrongly-limit-configurable.patch +++ b/CraftBukkit-Patches/0135-Make-moved-wrongly-limit-configurable.patch @@ -1,20 +1,20 @@ -From 6f7f9b857c6586787dd57c3488142aada77d97a2 Mon Sep 17 00:00:00 2001 +From 82d4bdfcb439e9d298c870b946d1080d5bc66619 Mon Sep 17 00:00:00 2001 From: Jonas Konrad Date: Fri, 4 Jul 2014 23:03:13 +0200 Subject: [PATCH] Make "moved wrongly" limit configurable diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java -index b64503d..44c8052 100644 +index 88e0306..f37e7c8 100644 --- a/src/main/java/net/minecraft/server/PlayerConnection.java +++ b/src/main/java/net/minecraft/server/PlayerConnection.java -@@ -422,7 +422,8 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList - d17 = d11 * d11 + d12 * d12 + d13 * d13; +@@ -418,7 +418,8 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList + d15 = d11 * d11 + d12 * d12 + d13 * d13; boolean flag1 = false; -- if (d17 > 0.0625D && !this.player.isSleeping() && !this.player.playerInteractManager.isCreative()) { +- if (d15 > 0.0625D && !this.player.isSleeping() && !this.player.playerInteractManager.isCreative()) { + // Spigot: make "moved wrongly" limit configurable -+ if (d17 > org.spigotmc.SpigotConfig.movedWronglyThreshold && !this.player.isSleeping() && !this.player.playerInteractManager.isCreative()) { ++ if (d15 > org.spigotmc.SpigotConfig.movedWronglyThreshold && !this.player.isSleeping() && !this.player.playerInteractManager.isCreative()) { flag1 = true; PlayerConnection.c.warn(this.player.getName() + " moved wrongly!"); } @@ -34,5 +34,5 @@ index c5e995b..759a95a 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0137-Fix-Null-Tile-Entity-Worlds.patch b/CraftBukkit-Patches/0136-Fix-Null-Tile-Entity-Worlds.patch similarity index 86% rename from CraftBukkit-Patches/0137-Fix-Null-Tile-Entity-Worlds.patch rename to CraftBukkit-Patches/0136-Fix-Null-Tile-Entity-Worlds.patch index dca4eb2..fe80765 100644 --- a/CraftBukkit-Patches/0137-Fix-Null-Tile-Entity-Worlds.patch +++ b/CraftBukkit-Patches/0136-Fix-Null-Tile-Entity-Worlds.patch @@ -1,11 +1,11 @@ -From 2b5bc577f459548733a4b01ab319d2c37d9c689b Mon Sep 17 00:00:00 2001 +From c2d63b92ab2f8970077a4fe611b7a68f0c278215 Mon Sep 17 00:00:00 2001 From: "Evan A. Haskell" Date: Thu, 26 Jun 2014 18:37:29 -0400 Subject: [PATCH] Fix Null Tile Entity Worlds diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java -index 156b5c3..b08260d 100644 +index 6e78b47..464b243 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -1946,6 +1946,7 @@ public abstract class World implements IBlockAccess { @@ -17,5 +17,5 @@ index 156b5c3..b08260d 100644 } else { this.a(tileentity); -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0138-Make-moved-too-quickly-limit-configurable.patch b/CraftBukkit-Patches/0137-Make-moved-too-quickly-limit-configurable.patch similarity index 58% rename from CraftBukkit-Patches/0138-Make-moved-too-quickly-limit-configurable.patch rename to CraftBukkit-Patches/0137-Make-moved-too-quickly-limit-configurable.patch index 3df973c..28c9229 100644 --- a/CraftBukkit-Patches/0138-Make-moved-too-quickly-limit-configurable.patch +++ b/CraftBukkit-Patches/0137-Make-moved-too-quickly-limit-configurable.patch @@ -1,21 +1,21 @@ -From d9bdd343cac4ba10519ebb8ec29a2f6db33182f2 Mon Sep 17 00:00:00 2001 +From 892d04db594a0c58f339a308f906e238772af1c8 Mon Sep 17 00:00:00 2001 From: Jonas Konrad Date: Tue, 22 Jul 2014 15:59:01 +0200 Subject: [PATCH] Make "moved too quickly" limit configurable diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java -index 44c8052..3108938 100644 +index f37e7c8..932d9a6 100644 --- a/src/main/java/net/minecraft/server/PlayerConnection.java +++ b/src/main/java/net/minecraft/server/PlayerConnection.java -@@ -395,7 +395,8 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList - // CraftBukkit end - double d17 = d14 * d14 + d15 * d15 + d16 * d16; +@@ -391,7 +391,8 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList + double d14 = this.player.motX * this.player.motX + this.player.motY * this.player.motY + this.player.motZ * this.player.motZ; + double d15 = d11 * d11 + d12 * d12 + d13 * d13; -- if (d17 > 100.0D && this.checkMovement && (!this.minecraftServer.S() || !this.minecraftServer.R().equals(this.player.getName()))) { // CraftBukkit - Added this.checkMovement condition to solve this check being triggered by teleports +- if (d15 - d14 > 100.0D && this.checkMovement && (!this.minecraftServer.T() || !this.minecraftServer.S().equals(this.player.getName()))) { // CraftBukkit - Added this.checkMovement condition to solve this check being triggered by teleports + // Spigot: make "moved too quickly" limit configurable -+ if (d17 > org.spigotmc.SpigotConfig.movedTooQuicklyThreshold && this.checkMovement && (!this.minecraftServer.S() || !this.minecraftServer.R().equals(this.player.getName()))) { // CraftBukkit - Added this.checkMovement condition to solve this check being triggered by teleports - PlayerConnection.c.warn(this.player.getName() + " moved too quickly! " + d11 + "," + d12 + "," + d13 + " (" + d14 + ", " + d15 + ", " + d16 + ")"); ++ if (d15 - d14 > org.spigotmc.SpigotConfig.movedTooQuicklyThreshold && this.checkMovement && (!this.minecraftServer.T() || !this.minecraftServer.S().equals(this.player.getName()))) { // CraftBukkit - Added this.checkMovement condition to solve this check being triggered by teleports + PlayerConnection.c.warn(this.player.getName() + " moved too quickly! " + d11 + "," + d12 + "," + d13 + " (" + d11 + ", " + d12 + ", " + d13 + ")"); this.a(this.o, this.p, this.q, this.player.yaw, this.player.pitch); return; diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java @@ -34,5 +34,5 @@ index 759a95a..8233de7 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0139-Apply-NBTReadLimiter-to-more-things.patch b/CraftBukkit-Patches/0138-Apply-NBTReadLimiter-to-more-things.patch similarity index 96% rename from CraftBukkit-Patches/0139-Apply-NBTReadLimiter-to-more-things.patch rename to CraftBukkit-Patches/0138-Apply-NBTReadLimiter-to-more-things.patch index 303064d..aaea6bf 100644 --- a/CraftBukkit-Patches/0139-Apply-NBTReadLimiter-to-more-things.patch +++ b/CraftBukkit-Patches/0138-Apply-NBTReadLimiter-to-more-things.patch @@ -1,4 +1,4 @@ -From e7d565763edc3d546afb355c57042ebc188ce341 Mon Sep 17 00:00:00 2001 +From 851cff2f81336b2bf44741a737eb5fe3258245ad Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 27 Jul 2014 20:46:04 +1000 Subject: [PATCH] Apply NBTReadLimiter to more things. @@ -67,5 +67,5 @@ index 0000000..8c32e8b + } +} -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0140-Allow-Attribute-Capping.patch b/CraftBukkit-Patches/0139-Allow-Attribute-Capping.patch similarity index 70% rename from CraftBukkit-Patches/0140-Allow-Attribute-Capping.patch rename to CraftBukkit-Patches/0139-Allow-Attribute-Capping.patch index 04a611d..fbd4550 100644 --- a/CraftBukkit-Patches/0140-Allow-Attribute-Capping.patch +++ b/CraftBukkit-Patches/0139-Allow-Attribute-Capping.patch @@ -1,4 +1,4 @@ -From 03b60ebf5e1a7d94af3ac0d6fdf5e48ec064428e Mon Sep 17 00:00:00 2001 +From d3950eb31a9ee39be9d5f8e6ee59a3b970e258dd Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 28 Jul 2014 16:55:51 +1000 Subject: [PATCH] Allow Attribute Capping. @@ -19,7 +19,7 @@ index 13602f0..838daed 100644 public AttributeRanged(IAttribute iattribute, String s, double d0, double d1, double d2) { diff --git a/src/main/java/net/minecraft/server/GenericAttributes.java b/src/main/java/net/minecraft/server/GenericAttributes.java -index 871859f..05beea2 100644 +index 59b06c4..0cc3e2f 100644 --- a/src/main/java/net/minecraft/server/GenericAttributes.java +++ b/src/main/java/net/minecraft/server/GenericAttributes.java @@ -9,11 +9,13 @@ import org.apache.logging.log4j.Logger; @@ -28,19 +28,19 @@ index 871859f..05beea2 100644 private static final Logger f = LogManager.getLogger(); - public static final IAttribute maxHealth = (new AttributeRanged((IAttribute) null, "generic.maxHealth", 20.0D, 0.0D, Double.MAX_VALUE)).a("Max Health").a(true); + // Spigot start -+ public static final IAttribute maxHealth = (new AttributeRanged((IAttribute) null, "generic.maxHealth", 20.0D, 0.1D, org.spigotmc.SpigotConfig.maxHealth)).a("Max Health").a(true); - public static final IAttribute b = (new AttributeRanged((IAttribute) null, "generic.followRange", 32.0D, 0.0D, 2048.0D)).a("Follow Range"); ++ public static final IAttribute maxHealth = (new AttributeRanged((IAttribute) null, "generic.maxHealth", 20.0D, 0.1D, org.spigotmc.SpigotConfig.maxHealth)).a("Max Health").a(true); + public static final IAttribute FOLLOW_RANGE = (new AttributeRanged((IAttribute) null, "generic.followRange", 32.0D, 0.0D, 2048.0D)).a("Follow Range"); public static final IAttribute c = (new AttributeRanged((IAttribute) null, "generic.knockbackResistance", 0.0D, 0.0D, 1.0D)).a("Knockback Resistance"); -- public static final IAttribute d = (new AttributeRanged((IAttribute) null, "generic.movementSpeed", 0.699999988079071D, 0.0D, Double.MAX_VALUE)).a("Movement Speed").a(true); -- public static final IAttribute e = new AttributeRanged((IAttribute) null, "generic.attackDamage", 2.0D, 0.0D, Double.MAX_VALUE); -+ public static final IAttribute d = (new AttributeRanged((IAttribute) null, "generic.movementSpeed", 0.699999988079071D, 0.0D, org.spigotmc.SpigotConfig.movementSpeed)).a("Movement Speed").a(true); -+ public static final IAttribute e = new AttributeRanged((IAttribute) null, "generic.attackDamage", 2.0D, 0.0D, org.spigotmc.SpigotConfig.attackDamage); +- public static final IAttribute MOVEMENT_SPEED = (new AttributeRanged((IAttribute) null, "generic.movementSpeed", 0.699999988079071D, 0.0D, Double.MAX_VALUE)).a("Movement Speed").a(true); +- public static final IAttribute ATTACK_DAMAGE = new AttributeRanged((IAttribute) null, "generic.attackDamage", 2.0D, 0.0D, Double.MAX_VALUE); ++ public static final IAttribute MOVEMENT_SPEED = (new AttributeRanged((IAttribute) null, "generic.movementSpeed", 0.699999988079071D, 0.0D, org.spigotmc.SpigotConfig.movementSpeed)).a("Movement Speed").a(true); ++ public static final IAttribute ATTACK_DAMAGE = new AttributeRanged((IAttribute) null, "generic.attackDamage", 2.0D, 0.0D, org.spigotmc.SpigotConfig.attackDamage); + // Spigot end public static NBTTagList a(AttributeMapBase attributemapbase) { NBTTagList nbttaglist = new NBTTagList(); diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java -index 8233de7..4ecb3cd 100644 +index 8233de7..8cc0d7c 100644 --- a/src/main/java/org/spigotmc/SpigotConfig.java +++ b/src/main/java/org/spigotmc/SpigotConfig.java @@ -14,6 +14,8 @@ import java.util.Map; @@ -65,11 +65,11 @@ index 8233de7..4ecb3cd 100644 + maxHealth = getDouble( "settings.attribute.maxHealth.max", maxHealth ); + ( (AttributeRanged) GenericAttributes.maxHealth ).b = maxHealth; + movementSpeed = getDouble( "settings.attribute.movementSpeed.max", movementSpeed ); -+ ( (AttributeRanged) GenericAttributes.d ).b = movementSpeed; ++ ( (AttributeRanged) GenericAttributes.MOVEMENT_SPEED ).b = movementSpeed; + attackDamage = getDouble( "settings.attribute.attackDamage.max", attackDamage ); -+ ( (AttributeRanged) GenericAttributes.e ).b = attackDamage; ++ ( (AttributeRanged) GenericAttributes.ATTACK_DAMAGE ).b = attackDamage; + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0141-Only-fetch-an-online-UUID-in-online-mode.patch b/CraftBukkit-Patches/0140-Only-fetch-an-online-UUID-in-online-mode.patch similarity index 96% rename from CraftBukkit-Patches/0141-Only-fetch-an-online-UUID-in-online-mode.patch rename to CraftBukkit-Patches/0140-Only-fetch-an-online-UUID-in-online-mode.patch index 9ef4c64..41f04fb 100644 --- a/CraftBukkit-Patches/0141-Only-fetch-an-online-UUID-in-online-mode.patch +++ b/CraftBukkit-Patches/0140-Only-fetch-an-online-UUID-in-online-mode.patch @@ -1,4 +1,4 @@ -From d437e1cb05b14b6b547ae9dbf1c96e63826aff18 Mon Sep 17 00:00:00 2001 +From 33a244d0cbd0bb38bdb5e7b5368c66a745815148 Mon Sep 17 00:00:00 2001 From: Maxim Van de Wynckel Date: Wed, 30 Jul 2014 01:19:51 +0200 Subject: [PATCH] Only fetch an online UUID in online mode @@ -33,5 +33,5 @@ index 9328d8e..59386fd 100644 // Make an OfflinePlayer using an offline mode UUID since the name has no profile result = getOfflinePlayer(new GameProfile(UUID.nameUUIDFromBytes(("OfflinePlayer:" + name).getBytes(Charsets.UTF_8)), name)); -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0142-Filter-attribute-modifiers-which-cause-the-attribute.patch b/CraftBukkit-Patches/0141-Filter-attribute-modifiers-which-cause-the-attribute.patch similarity index 97% rename from CraftBukkit-Patches/0142-Filter-attribute-modifiers-which-cause-the-attribute.patch rename to CraftBukkit-Patches/0141-Filter-attribute-modifiers-which-cause-the-attribute.patch index 037e119..3bfa0c6 100644 --- a/CraftBukkit-Patches/0142-Filter-attribute-modifiers-which-cause-the-attribute.patch +++ b/CraftBukkit-Patches/0141-Filter-attribute-modifiers-which-cause-the-attribute.patch @@ -1,4 +1,4 @@ -From dc7a41d7197231eea336e1030f780c7a09a9a5ab Mon Sep 17 00:00:00 2001 +From 433109c08ea4c9c4e819f1053f38c85e22610dcf Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Thu, 31 Jul 2014 17:48:20 +0100 Subject: [PATCH] Filter attribute modifiers which cause the attribute to go @@ -6,7 +6,7 @@ Subject: [PATCH] Filter attribute modifiers which cause the attribute to go diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java -index 2429eef..dbdd47d 100644 +index 2429eef..736aa69 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java @@ -49,6 +49,8 @@ import org.apache.commons.codec.binary.Base64; @@ -29,13 +29,13 @@ index 2429eef..dbdd47d 100644 + attributeTracker.put( "generic.maxHealth", 20.0 ); + attributesByName.put( "generic.maxHealth", GenericAttributes.maxHealth ); + attributeTracker.put( "generic.followRange", 32.0 ); -+ attributesByName.put( "generic.followRange", GenericAttributes.b ); ++ attributesByName.put( "generic.followRange", GenericAttributes.FOLLOW_RANGE ); + attributeTracker.put( "generic.knockbackResistance", 0.0 ); + attributesByName.put( "generic.knockbackResistance", GenericAttributes.c ); + attributeTracker.put( "generic.movementSpeed", 0.7 ); -+ attributesByName.put( "generic.movementSpeed", GenericAttributes.d ); ++ attributesByName.put( "generic.movementSpeed", GenericAttributes.MOVEMENT_SPEED ); + attributeTracker.put( "generic.attackDamage", 1.0 ); -+ attributesByName.put( "generic.attackDamage", GenericAttributes.e ); ++ attributesByName.put( "generic.attackDamage", GenericAttributes.ATTACK_DAMAGE ); + NBTTagList oldList = nbttaglist; + nbttaglist = new NBTTagList(); + @@ -143,5 +143,5 @@ index 2429eef..dbdd47d 100644 if (!(nbttaglist.get(i) instanceof NBTTagCompound)) { continue; -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0143-Plug-WorldMap-Memory-Leak.patch b/CraftBukkit-Patches/0142-Plug-WorldMap-Memory-Leak.patch similarity index 96% rename from CraftBukkit-Patches/0143-Plug-WorldMap-Memory-Leak.patch rename to CraftBukkit-Patches/0142-Plug-WorldMap-Memory-Leak.patch index 3e8ce47..401e2b3 100644 --- a/CraftBukkit-Patches/0143-Plug-WorldMap-Memory-Leak.patch +++ b/CraftBukkit-Patches/0142-Plug-WorldMap-Memory-Leak.patch @@ -1,4 +1,4 @@ -From d9eb96cd34a474c300be978754c3fa43306a1ef0 Mon Sep 17 00:00:00 2001 +From 75f119e1617fcf060a3881c9082456c3ea0e48c6 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 8 Aug 2014 19:57:03 +1000 Subject: [PATCH] Plug WorldMap Memory Leak @@ -18,7 +18,7 @@ index 4b8d548..451f481 100644 public PersistentCollection(IDataManager idatamanager) { diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java -index b08260d..c09ea1f 100644 +index 464b243..2c947ca 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -1084,6 +1084,23 @@ public abstract class World implements IBlockAccess { @@ -59,5 +59,5 @@ index 0e03164..9772760 100644 // CraftBukkit start -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0144-Fix-Corrupted-Trapped-Chest.patch b/CraftBukkit-Patches/0143-Fix-Corrupted-Trapped-Chest.patch similarity index 91% rename from CraftBukkit-Patches/0144-Fix-Corrupted-Trapped-Chest.patch rename to CraftBukkit-Patches/0143-Fix-Corrupted-Trapped-Chest.patch index c592bbc..7340130 100644 --- a/CraftBukkit-Patches/0144-Fix-Corrupted-Trapped-Chest.patch +++ b/CraftBukkit-Patches/0143-Fix-Corrupted-Trapped-Chest.patch @@ -1,4 +1,4 @@ -From 49337acf281653a30930c7ba78f3909e45b54707 Mon Sep 17 00:00:00 2001 +From decc3539602a4069f15084219e3b984a365beb17 Mon Sep 17 00:00:00 2001 From: Aikar Date: Fri, 15 Aug 2014 00:56:41 -0400 Subject: [PATCH] Fix Corrupted Trapped Chest @@ -9,7 +9,7 @@ If a Trapped Chest gets its Tile Entity corrupted, it will crash the server ever This will now fix Trapped Chests too. diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java -index 1d1ea9b..a502e06 100644 +index fba6814..65f13be 100644 --- a/src/main/java/net/minecraft/server/WorldServer.java +++ b/src/main/java/net/minecraft/server/WorldServer.java @@ -126,7 +126,7 @@ public class WorldServer extends World implements IAsyncTaskHandler { @@ -22,5 +22,5 @@ index 1d1ea9b..a502e06 100644 result = fixTileEntity(pos, type, result); } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0145-Remove-uneeded-validation.patch b/CraftBukkit-Patches/0144-Remove-uneeded-validation.patch similarity index 96% rename from CraftBukkit-Patches/0145-Remove-uneeded-validation.patch rename to CraftBukkit-Patches/0144-Remove-uneeded-validation.patch index a638e85..8dc883b 100644 --- a/CraftBukkit-Patches/0145-Remove-uneeded-validation.patch +++ b/CraftBukkit-Patches/0144-Remove-uneeded-validation.patch @@ -1,4 +1,4 @@ -From 4f4e345db08d04567c10f3f9dab0120cf4934e97 Mon Sep 17 00:00:00 2001 +From cfd887d24911b0a34b7357bfc294480c08c5c024 Mon Sep 17 00:00:00 2001 From: drXor Date: Fri, 15 Aug 2014 18:11:09 -0400 Subject: [PATCH] Remove uneeded validation @@ -43,5 +43,5 @@ index dbdd47d..6c4c524 100644 public boolean hasEnchants() { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0146-Add-Hunger-Config-Values.patch b/CraftBukkit-Patches/0145-Add-Hunger-Config-Values.patch similarity index 96% rename from CraftBukkit-Patches/0146-Add-Hunger-Config-Values.patch rename to CraftBukkit-Patches/0145-Add-Hunger-Config-Values.patch index 324315b..d1be31f 100644 --- a/CraftBukkit-Patches/0146-Add-Hunger-Config-Values.patch +++ b/CraftBukkit-Patches/0145-Add-Hunger-Config-Values.patch @@ -1,11 +1,11 @@ -From 6a97505a1a8e414c6f03c6355414501ca85da0ff Mon Sep 17 00:00:00 2001 +From 2a8a6440644da74aab591456902e6edd1342a5bd Mon Sep 17 00:00:00 2001 From: lazertester Date: Sun, 17 Aug 2014 19:56:17 +1000 Subject: [PATCH] Add Hunger Config Values diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java -index 2004d67..d73395a 100644 +index 51f196a..7eb26f7 100644 --- a/src/main/java/net/minecraft/server/EntityHuman.java +++ b/src/main/java/net/minecraft/server/EntityHuman.java @@ -1084,7 +1084,7 @@ public abstract class EntityHuman extends EntityLiving { @@ -64,5 +64,5 @@ index d644922..75edbb9 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0147-Make-debug-logging-togglable.patch b/CraftBukkit-Patches/0146-Make-debug-logging-togglable.patch similarity index 92% rename from CraftBukkit-Patches/0147-Make-debug-logging-togglable.patch rename to CraftBukkit-Patches/0146-Make-debug-logging-togglable.patch index db3d76e..36d2940 100644 --- a/CraftBukkit-Patches/0147-Make-debug-logging-togglable.patch +++ b/CraftBukkit-Patches/0146-Make-debug-logging-togglable.patch @@ -1,11 +1,11 @@ -From 1ed3a08a02e56c86f843454d80813f5506e74fa2 Mon Sep 17 00:00:00 2001 +From f8303bfc0941d224b0ea14aa091c8905235cdd75 Mon Sep 17 00:00:00 2001 From: Minecrell Date: Sun, 17 Aug 2014 12:42:53 +0200 Subject: [PATCH] Make debug logging togglable. diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java -index 4ecb3cd..c03388d 100644 +index 8cc0d7c..4402fe5 100644 --- a/src/main/java/org/spigotmc/SpigotConfig.java +++ b/src/main/java/org/spigotmc/SpigotConfig.java @@ -17,6 +17,9 @@ import gnu.trove.map.hash.TObjectIntHashMap; @@ -20,7 +20,7 @@ index 4ecb3cd..c03388d 100644 import org.bukkit.command.Command; @@ -360,4 +363,27 @@ public class SpigotConfig attackDamage = getDouble( "settings.attribute.attackDamage.max", attackDamage ); - ( (AttributeRanged) GenericAttributes.e ).b = attackDamage; + ( (AttributeRanged) GenericAttributes.ATTACK_DAMAGE ).b = attackDamage; } + + public static boolean debug; @@ -63,5 +63,5 @@ index 08d68aa..f37d1c2 100644 -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0148-Skip-invalid-enchants-in-CraftMetaItem.patch b/CraftBukkit-Patches/0147-Skip-invalid-enchants-in-CraftMetaItem.patch similarity index 94% rename from CraftBukkit-Patches/0148-Skip-invalid-enchants-in-CraftMetaItem.patch rename to CraftBukkit-Patches/0147-Skip-invalid-enchants-in-CraftMetaItem.patch index bd3763d..69acc0d 100644 --- a/CraftBukkit-Patches/0148-Skip-invalid-enchants-in-CraftMetaItem.patch +++ b/CraftBukkit-Patches/0147-Skip-invalid-enchants-in-CraftMetaItem.patch @@ -1,4 +1,4 @@ -From 1fca4b8a4edfb11b71487b5eeb88e17736b5d4c0 Mon Sep 17 00:00:00 2001 +From 4bff08a9b1bec34cbb52a22c7ae5d2024d4ea6d3 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Tue, 19 Aug 2014 11:04:21 +0100 Subject: [PATCH] Skip invalid enchants in CraftMetaItem @@ -25,5 +25,5 @@ index 6c4c524..74cb365 100644 return enchantments; -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0149-Limit-TNT-Detonations-per-tick.patch b/CraftBukkit-Patches/0148-Limit-TNT-Detonations-per-tick.patch similarity index 95% rename from CraftBukkit-Patches/0149-Limit-TNT-Detonations-per-tick.patch rename to CraftBukkit-Patches/0148-Limit-TNT-Detonations-per-tick.patch index a94ef1c..5487217 100644 --- a/CraftBukkit-Patches/0149-Limit-TNT-Detonations-per-tick.patch +++ b/CraftBukkit-Patches/0148-Limit-TNT-Detonations-per-tick.patch @@ -1,4 +1,4 @@ -From 91215e91d81b53509def42bc44d4a027eb3ac704 Mon Sep 17 00:00:00 2001 +From 78603e464ee15fff258269a9a24612b4474d28e4 Mon Sep 17 00:00:00 2001 From: Aikar Date: Wed, 20 Aug 2014 18:12:32 -0400 Subject: [PATCH] Limit TNT Detonations per tick @@ -19,7 +19,7 @@ index 10f6e47..2d22327 100644 this.lastY = this.locY; this.lastZ = this.locZ; diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java -index a502e06..261c86c 100644 +index 65f13be..d76b965 100644 --- a/src/main/java/net/minecraft/server/WorldServer.java +++ b/src/main/java/net/minecraft/server/WorldServer.java @@ -595,6 +595,7 @@ public class WorldServer extends World implements IAsyncTaskHandler { @@ -51,5 +51,5 @@ index 75edbb9..3b6d4c0 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0150-Added-isUnbreakable-and-setUnbreakable-to-ItemMeta.patch b/CraftBukkit-Patches/0149-Added-isUnbreakable-and-setUnbreakable-to-ItemMeta.patch similarity index 98% rename from CraftBukkit-Patches/0150-Added-isUnbreakable-and-setUnbreakable-to-ItemMeta.patch rename to CraftBukkit-Patches/0149-Added-isUnbreakable-and-setUnbreakable-to-ItemMeta.patch index be1339f..485fa5a 100644 --- a/CraftBukkit-Patches/0150-Added-isUnbreakable-and-setUnbreakable-to-ItemMeta.patch +++ b/CraftBukkit-Patches/0149-Added-isUnbreakable-and-setUnbreakable-to-ItemMeta.patch @@ -1,4 +1,4 @@ -From 8886c689b97e063543858d545c60af9368702699 Mon Sep 17 00:00:00 2001 +From 4637d21df3a5017ba03c8c789909ee43fd2ccbcc Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 22 Aug 2014 05:35:16 -0400 Subject: [PATCH] Added isUnbreakable and setUnbreakable to ItemMeta @@ -139,5 +139,5 @@ index 74cb365..5580404 100644 @Override -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0151-Configurable-Hanging-Tick.patch b/CraftBukkit-Patches/0150-Configurable-Hanging-Tick.patch similarity index 95% rename from CraftBukkit-Patches/0151-Configurable-Hanging-Tick.patch rename to CraftBukkit-Patches/0150-Configurable-Hanging-Tick.patch index eb8962d..65aa15e 100644 --- a/CraftBukkit-Patches/0151-Configurable-Hanging-Tick.patch +++ b/CraftBukkit-Patches/0150-Configurable-Hanging-Tick.patch @@ -1,4 +1,4 @@ -From 49d025099bde101776e015ca161460d10deb40a1 Mon Sep 17 00:00:00 2001 +From 3d18bab0480aef5e09b13721276144d8e52af007 Mon Sep 17 00:00:00 2001 From: drXor Date: Sat, 9 Aug 2014 13:56:51 -0400 Subject: [PATCH] Configurable Hanging Tick @@ -33,5 +33,5 @@ index 3b6d4c0..042ec2a 100644 + } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0153-Refactor-ItemDoor-Place.patch b/CraftBukkit-Patches/0151-Refactor-ItemDoor-Place.patch similarity index 95% rename from CraftBukkit-Patches/0153-Refactor-ItemDoor-Place.patch rename to CraftBukkit-Patches/0151-Refactor-ItemDoor-Place.patch index 47e032f..fac66a0 100644 --- a/CraftBukkit-Patches/0153-Refactor-ItemDoor-Place.patch +++ b/CraftBukkit-Patches/0151-Refactor-ItemDoor-Place.patch @@ -1,4 +1,4 @@ -From a64362c9fa3d607417465d5dbefff05d54b26b5d Mon Sep 17 00:00:00 2001 +From 4a22cce4810d6177216abdaf00be1538375ae316 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 30 Sep 2014 21:43:15 +1000 Subject: [PATCH] Refactor ItemDoor Place @@ -25,5 +25,5 @@ index eef43df..6e92cab 100644 } } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0154-BungeeCord-Chat-API.patch b/CraftBukkit-Patches/0152-BungeeCord-Chat-API.patch similarity index 97% rename from CraftBukkit-Patches/0154-BungeeCord-Chat-API.patch rename to CraftBukkit-Patches/0152-BungeeCord-Chat-API.patch index 94d8fa5..87913f5 100644 --- a/CraftBukkit-Patches/0154-BungeeCord-Chat-API.patch +++ b/CraftBukkit-Patches/0152-BungeeCord-Chat-API.patch @@ -1,4 +1,4 @@ -From 7c8335a89bbac0114ac349f20223b78858e728cc Mon Sep 17 00:00:00 2001 +From c7a29c493f41794ec59e0d628bc41cef29985f0a Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 13 Dec 2014 13:06:05 +1100 Subject: [PATCH] BungeeCord Chat API @@ -89,7 +89,7 @@ index 59386fd..6174417 100644 public Spigot spigot() diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -index 92df378..06e014c 100644 +index 50761d7..40ee4d3 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -18,6 +18,7 @@ import java.util.Set; @@ -122,5 +122,5 @@ index 92df378..06e014c 100644 public Player.Spigot spigot() -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0152-Fix-Some-Memory-Leaks.patch b/CraftBukkit-Patches/0152-Fix-Some-Memory-Leaks.patch deleted file mode 100644 index 117b2b9..0000000 --- a/CraftBukkit-Patches/0152-Fix-Some-Memory-Leaks.patch +++ /dev/null @@ -1,131 +0,0 @@ -From d831f3b8ed395f53e4671526a8ec2688e36cbdc8 Mon Sep 17 00:00:00 2001 -From: md_5 -Date: Sun, 21 Sep 2014 10:06:01 +1000 -Subject: [PATCH] Fix Some Memory Leaks - - -diff --git a/src/main/java/net/minecraft/server/EnchantmentManager.java b/src/main/java/net/minecraft/server/EnchantmentManager.java -index 9865681..32f5a3e 100644 ---- a/src/main/java/net/minecraft/server/EnchantmentManager.java -+++ b/src/main/java/net/minecraft/server/EnchantmentManager.java -@@ -168,7 +168,10 @@ public class EnchantmentManager { - if (entity instanceof EntityHuman) { - a((EnchantmentManager.EnchantmentModifier) EnchantmentManager.d, entityliving.bA()); - } -- -+ // Spigot start -+ d.b = null; -+ d.a = null; -+ // Spigot end - } - - public static void b(EntityLiving entityliving, Entity entity) { -@@ -181,7 +184,10 @@ public class EnchantmentManager { - if (entityliving instanceof EntityHuman) { - a((EnchantmentManager.EnchantmentModifier) EnchantmentManager.e, entityliving.bA()); - } -- -+ // Spigot start -+ e.a = null; -+ e.b = null; -+ // Spigot end - } - - public static int a(EntityLiving entityliving) { -diff --git a/src/main/java/net/minecraft/server/EntityInsentient.java b/src/main/java/net/minecraft/server/EntityInsentient.java -index 7c23753..134897a 100644 ---- a/src/main/java/net/minecraft/server/EntityInsentient.java -+++ b/src/main/java/net/minecraft/server/EntityInsentient.java -@@ -1,5 +1,6 @@ - package net.minecraft.server; - -+import java.lang.ref.WeakReference; // Spigot - import java.util.Iterator; - import java.util.List; - import java.util.UUID; -@@ -24,7 +25,7 @@ public abstract class EntityInsentient extends EntityLiving { - protected NavigationAbstract navigation; - public PathfinderGoalSelector goalSelector; // CraftBukkit - public - public PathfinderGoalSelector targetSelector; // CraftBukkit - public -- private EntityLiving goalTarget; -+ private WeakReference goalTarget = new WeakReference(null); - private EntitySenses bk; - private ItemStack[] equipment = new ItemStack[5]; - public float[] dropChances = new float[5]; // CraftBukkit - public -@@ -84,7 +85,7 @@ public abstract class EntityInsentient extends EntityLiving { - } - - public EntityLiving getGoalTarget() { -- return this.goalTarget; -+ return this.goalTarget.get(); // Spigot - } - - public void setGoalTarget(EntityLiving entityliving) { -@@ -117,7 +118,7 @@ public abstract class EntityInsentient extends EntityLiving { - entityliving = null; - } - } -- this.goalTarget = entityliving; -+ this.goalTarget = new WeakReference(entityliving); // Spigot - // CraftBukkit end - } - -diff --git a/src/main/java/net/minecraft/server/NetworkManager.java b/src/main/java/net/minecraft/server/NetworkManager.java -index c71150a..01c09b1 100644 ---- a/src/main/java/net/minecraft/server/NetworkManager.java -+++ b/src/main/java/net/minecraft/server/NetworkManager.java -@@ -241,6 +241,7 @@ public class NetworkManager extends SimpleChannelInboundHandler { - public void close(IChatBaseComponent ichatbasecomponent) { - // Spigot Start - this.preparing = false; -+ this.i.clear(); - // Spigot End - if (this.k.isOpen()) { - this.k.close(); // We can't wait as this may be called from an event loop. -diff --git a/src/main/java/net/minecraft/server/PathfinderGoalSwell.java b/src/main/java/net/minecraft/server/PathfinderGoalSwell.java -index c8eebf8..0c05aee 100644 ---- a/src/main/java/net/minecraft/server/PathfinderGoalSwell.java -+++ b/src/main/java/net/minecraft/server/PathfinderGoalSwell.java -@@ -3,7 +3,7 @@ package net.minecraft.server; - public class PathfinderGoalSwell extends PathfinderGoal { - - EntityCreeper a; -- EntityLiving b; -+ // EntityLiving b; // Spigot - - public PathfinderGoalSwell(EntityCreeper entitycreeper) { - this.a = entitycreeper; -@@ -18,22 +18,25 @@ public class PathfinderGoalSwell extends PathfinderGoal { - - public void c() { - this.a.getNavigation().n(); -- this.b = this.a.getGoalTarget(); -+ // this.b = this.a.getGoalTarget(); // Spigot - } - - public void d() { -- this.b = null; -+ // this.b = null; // Spigot - } - - public void e() { -- if (this.b == null) { -+ // Spigot start -+ EntityLiving b = this.a.getGoalTarget(); -+ if (b == null) { - this.a.a(-1); -- } else if (this.a.h(this.b) > 49.0D) { -+ } else if (this.a.h(b) > 49.0D) { - this.a.a(-1); -- } else if (!this.a.getEntitySenses().a(this.b)) { -+ } else if (!this.a.getEntitySenses().a(b)) { - this.a.a(-1); - } else { - this.a.a(1); - } -+ // Spigot end - } - } --- -2.1.0 - diff --git a/CraftBukkit-Patches/0155-Use-Standard-List-for-EntitySlices.patch b/CraftBukkit-Patches/0153-Use-Standard-List-for-EntitySlices.patch similarity index 97% rename from CraftBukkit-Patches/0155-Use-Standard-List-for-EntitySlices.patch rename to CraftBukkit-Patches/0153-Use-Standard-List-for-EntitySlices.patch index 74cf4b1..5148d3b 100644 --- a/CraftBukkit-Patches/0155-Use-Standard-List-for-EntitySlices.patch +++ b/CraftBukkit-Patches/0153-Use-Standard-List-for-EntitySlices.patch @@ -1,4 +1,4 @@ -From adfa117634e3248fb8fbcc4f39dfac8b9f2c6e7c Mon Sep 17 00:00:00 2001 +From e90cd00de38eca3c597846015b3eeca31c16ffb5 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 20 Feb 2015 21:33:36 +1100 Subject: [PATCH] Use Standard List for EntitySlices. @@ -75,5 +75,5 @@ index 0143623..621a717 100644 if ( MinecraftServer.currentTick > entity.activatedTick ) { -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0156-Allow-Capping-Tile-Entity-Tick-Time.patch b/CraftBukkit-Patches/0154-Allow-Capping-Tile-Entity-Tick-Time.patch similarity index 98% rename from CraftBukkit-Patches/0156-Allow-Capping-Tile-Entity-Tick-Time.patch rename to CraftBukkit-Patches/0154-Allow-Capping-Tile-Entity-Tick-Time.patch index 6badc3b..2112fde 100644 --- a/CraftBukkit-Patches/0156-Allow-Capping-Tile-Entity-Tick-Time.patch +++ b/CraftBukkit-Patches/0154-Allow-Capping-Tile-Entity-Tick-Time.patch @@ -1,4 +1,4 @@ -From 714118c140a88bd44a0f3d03dc1f51a1bcc32f15 Mon Sep 17 00:00:00 2001 +From 54ad33cb6023b4bead3ff222395954f8562a0372 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 20 Feb 2015 21:39:31 +1100 Subject: [PATCH] Allow Capping (Tile)Entity Tick Time. @@ -10,7 +10,7 @@ For tiles there is very little tradeoff for this option, as tile ticks are based This feature was commisioned by Chunkr. diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java -index c09ea1f..7e4aff2 100644 +index 2c947ca..6de5ba5 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -137,6 +137,9 @@ public abstract class World implements IBlockAccess { @@ -125,5 +125,5 @@ index 0000000..23a3938 + } +} -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0157-Use-FastMatches-for-ItemStack-Dirty-Check.patch b/CraftBukkit-Patches/0155-Use-FastMatches-for-ItemStack-Dirty-Check.patch similarity index 97% rename from CraftBukkit-Patches/0157-Use-FastMatches-for-ItemStack-Dirty-Check.patch rename to CraftBukkit-Patches/0155-Use-FastMatches-for-ItemStack-Dirty-Check.patch index efbd0cb..472f35e 100644 --- a/CraftBukkit-Patches/0157-Use-FastMatches-for-ItemStack-Dirty-Check.patch +++ b/CraftBukkit-Patches/0155-Use-FastMatches-for-ItemStack-Dirty-Check.patch @@ -1,4 +1,4 @@ -From 58ef79a6596bccbbde8cd968377d54c260dd2eff Mon Sep 17 00:00:00 2001 +From 5423a988112f146cd6249bad0b65e8e5f0c7bd1d Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 22 Feb 2015 12:27:40 +1100 Subject: [PATCH] Use FastMatches for ItemStack Dirty Check @@ -58,5 +58,5 @@ index 86b20c7..1984e7c 100644 return itemstack == null && itemstack1 == null ? true : (itemstack != null && itemstack1 != null ? itemstack.d(itemstack1) : false); } -- -2.1.0 +2.1.4 diff --git a/CraftBukkit-Patches/0158-Use-CLQ-for-main-thread-tasks.patch b/CraftBukkit-Patches/0156-Use-CLQ-for-main-thread-tasks.patch similarity index 88% rename from CraftBukkit-Patches/0158-Use-CLQ-for-main-thread-tasks.patch rename to CraftBukkit-Patches/0156-Use-CLQ-for-main-thread-tasks.patch index 0ed119a..30c29ea 100644 --- a/CraftBukkit-Patches/0158-Use-CLQ-for-main-thread-tasks.patch +++ b/CraftBukkit-Patches/0156-Use-CLQ-for-main-thread-tasks.patch @@ -1,11 +1,11 @@ -From 24bbbf4ff02ee0450297e8aed42e225bc2c1b532 Mon Sep 17 00:00:00 2001 +From fbac64f81dab23bd878125a77e249a6cda0ea99a Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 19 Apr 2015 09:19:39 +1000 Subject: [PATCH] Use CLQ for main thread tasks. diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 88640a5..b189c19 100644 +index 517c4c2..7580b47 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -104,7 +104,7 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs @@ -15,9 +15,9 @@ index 88640a5..b189c19 100644 - protected final Queue> j = Queues.newArrayDeque(); + protected final Queue> j = new java.util.concurrent.ConcurrentLinkedQueue>(); // Spigot, PAIL: Rename private Thread serverThread; - private long ab = ay(); + private long ab = az(); -@@ -705,11 +705,13 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -711,11 +711,13 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs this.methodProfiler.a("jobs"); Queue queue = this.j; @@ -36,7 +36,7 @@ index 88640a5..b189c19 100644 this.methodProfiler.c("levels"); -@@ -1493,10 +1495,10 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs +@@ -1499,10 +1501,10 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs ListenableFutureTask listenablefuturetask = ListenableFutureTask.create(callable); Queue queue = this.j; @@ -52,5 +52,5 @@ index 88640a5..b189c19 100644 try { return Futures.immediateFuture(callable.call()); -- -2.1.0 +2.1.4