3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-21 14:00:11 +01:00
Paper/nms-patches/CustomFunctionData.patch

30 Zeilen
933 B
Diff

2017-05-14 04:00:00 +02:00
--- a/net/minecraft/server/CustomFunctionData.java
+++ b/net/minecraft/server/CustomFunctionData.java
2017-05-19 13:00:13 +02:00
@@ -33,7 +33,7 @@
2017-05-14 04:00:00 +02:00
}
public World getWorld() {
- return CustomFunctionData.this.c.worldServer[0];
+ return CustomFunctionData.this.c.worlds.get(0); // CraftBukkit
}
public MinecraftServer C_() {
2017-05-19 13:00:13 +02:00
@@ -57,7 +57,7 @@
2017-05-14 04:00:00 +02:00
}
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() {
2017-05-19 13:00:13 +02:00
@@ -65,7 +65,7 @@
2017-05-14 04:00:00 +02:00
}
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;