summaryrefslogtreecommitdiffstats
path: root/nms-patches/JsonList.patch
diff options
context:
space:
mode:
authorThinkofdeath <thinkofdeath@spigotmc.org>2014-11-26 08:32:16 +1100
committermd_5 <git@md-5.net>2014-11-28 17:16:30 +1100
commit24557bc2b37deb6a0edf497d547471832457b1dd (patch)
treec560572889a3b0b34964a0cddb35dc87fda3c914 /nms-patches/JsonList.patch
parenta4805dbd77da057cc1ea0bf344379bc6e53ca1f6 (diff)
downloadcraftbukkit-24557bc2b37deb6a0edf497d547471832457b1dd.tar
craftbukkit-24557bc2b37deb6a0edf497d547471832457b1dd.tar.gz
craftbukkit-24557bc2b37deb6a0edf497d547471832457b1dd.tar.lz
craftbukkit-24557bc2b37deb6a0edf497d547471832457b1dd.tar.xz
craftbukkit-24557bc2b37deb6a0edf497d547471832457b1dd.zip
Update to Minecraft 1.8
For more information please see http://www.spigotmc.org/
Diffstat (limited to 'nms-patches/JsonList.patch')
-rw-r--r--nms-patches/JsonList.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/nms-patches/JsonList.patch b/nms-patches/JsonList.patch
new file mode 100644
index 00000000..0dcf0352
--- /dev/null
+++ b/nms-patches/JsonList.patch
@@ -0,0 +1,33 @@
+--- ../work/decompile-bb26c12b/net/minecraft/server/JsonList.java 2014-11-27 08:59:46.797421424 +1100
++++ src/main/java/net/minecraft/server/JsonList.java 2014-11-27 08:42:10.168850880 +1100
+@@ -79,6 +79,12 @@
+ public String[] getEntries() {
+ return (String[]) this.d.keySet().toArray(new String[this.d.size()]);
+ }
++
++ // CraftBukkit start
++ public Collection<JsonListEntry> getValues() {
++ return this.d.values();
++ }
++ // CraftBukkit end
+
+ public boolean isEmpty() {
+ return this.d.size() < 1;
+@@ -122,7 +128,7 @@
+ return this.d;
+ }
+
+- public void save() {
++ public void save() throws IOException { // CraftBukkit - Added throws
+ Collection collection = this.d.values();
+ String s = this.b.toJson(collection);
+ BufferedWriter bufferedwriter = null;
+@@ -136,7 +142,7 @@
+
+ }
+
+- public void load() {
++ public void load() throws IOException { // CraftBukkit - Added throws
+ Collection collection = null;
+ BufferedReader bufferedreader = null;
+