summaryrefslogtreecommitdiffstats
path: root/nms-patches/CustomFunctionData.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-05-14 12:00:00 +1000
committermd_5 <git@md-5.net>2017-05-14 12:00:00 +1000
commit5195487ec6c01a80e3a2fca8c4acfc6b9524fcf5 (patch)
tree0314ba59f51141bb5e0e7ff6ca7723d168ac94b9 /nms-patches/CustomFunctionData.patch
parent6e3cec8bc78269d72ef7ef49ce82a5eadfb9615a (diff)
downloadcraftbukkit-5195487ec6c01a80e3a2fca8c4acfc6b9524fcf5.tar
craftbukkit-5195487ec6c01a80e3a2fca8c4acfc6b9524fcf5.tar.gz
craftbukkit-5195487ec6c01a80e3a2fca8c4acfc6b9524fcf5.tar.lz
craftbukkit-5195487ec6c01a80e3a2fca8c4acfc6b9524fcf5.tar.xz
craftbukkit-5195487ec6c01a80e3a2fca8c4acfc6b9524fcf5.zip
Update to Minecraft 1.12-pre2
Diffstat (limited to 'nms-patches/CustomFunctionData.patch')
-rw-r--r--nms-patches/CustomFunctionData.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/nms-patches/CustomFunctionData.patch b/nms-patches/CustomFunctionData.patch
new file mode 100644
index 00000000..f7ac23a0
--- /dev/null
+++ b/nms-patches/CustomFunctionData.patch
@@ -0,0 +1,29 @@
+--- a/net/minecraft/server/CustomFunctionData.java
++++ b/net/minecraft/server/CustomFunctionData.java
+@@ -31,7 +31,7 @@
+ }
+
+ public World getWorld() {
+- return CustomFunctionData.this.c.worldServer[0];
++ return CustomFunctionData.this.c.worlds.get(0); // CraftBukkit
+ }
+
+ public MinecraftServer C_() {
+@@ -55,7 +55,7 @@
+ }
+
+ public int c() {
+- return this.c.worldServer[0].getGameRules().c("maxCommandChainLength");
++ return this.c.worlds.get(0).getGameRules().c("maxCommandChainLength"); // CraftBukkit
+ }
+
+ public Map<MinecraftKey, CustomFunction> d() {
+@@ -63,7 +63,7 @@
+ }
+
+ public void e() {
+- String s = this.c.worldServer[0].getGameRules().get("gameLoopFunction");
++ String s = this.c.worlds.get(0).getGameRules().get("gameLoopFunction"); // CraftBukkit
+
+ if (!s.equals(this.e)) {
+ this.e = s;