mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 13:42:25 -07:00
Update to Minecraft 1.12-pre2
This commit is contained in:
29
nms-patches/CustomFunctionData.patch
Normal file
29
nms-patches/CustomFunctionData.patch
Normal file
@@ -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;
|
Reference in New Issue
Block a user