diff options
Diffstat (limited to 'nms-patches/CommandGamerule.patch')
-rw-r--r-- | nms-patches/CommandGamerule.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nms-patches/CommandGamerule.patch b/nms-patches/CommandGamerule.patch index c619010f..acb2de48 100644 --- a/nms-patches/CommandGamerule.patch +++ b/nms-patches/CommandGamerule.patch @@ -1,17 +1,17 @@ --- a/net/minecraft/server/CommandGamerule.java +++ b/net/minecraft/server/CommandGamerule.java -@@ -20,7 +20,7 @@ +@@ -21,7 +21,7 @@ } - public void execute(ICommandListener icommandlistener, String[] astring) throws CommandException { -- GameRules gamerules = this.d(); + public void execute(MinecraftServer minecraftserver, ICommandListener icommandlistener, String[] astring) throws CommandException { +- GameRules gamerules = this.a(minecraftserver); + GameRules gamerules = icommandlistener.getWorld().getGameRules(); // CraftBukkit - Use current world String s = astring.length > 0 ? astring[0] : ""; String s1 = astring.length > 1 ? a(astring, 1) : ""; -@@ -85,4 +85,11 @@ - private GameRules d() { - return MinecraftServer.getServer().getWorldServer(0).getGameRules(); +@@ -86,4 +86,11 @@ + private GameRules a(MinecraftServer minecraftserver) { + return minecraftserver.getWorldServer(0).getGameRules(); } + + // CraftBukkit start - fix decompile error |