summaryrefslogtreecommitdiffstats
path: root/nms-patches/CustomFunctionData.patch
blob: f0baac847354b2261d31918cc192a24b6a2ac7bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- a/net/minecraft/server/CustomFunctionData.java
+++ b/net/minecraft/server/CustomFunctionData.java
@@ -33,7 +33,7 @@
         }
 
         public World getWorld() {
-            return CustomFunctionData.this.c.worldServer[0];
+            return CustomFunctionData.this.c.worlds.get(0); // CraftBukkit
         }
 
         public MinecraftServer C_() {
@@ -57,7 +57,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() {
@@ -65,7 +65,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;