2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/CommandGamerule.java
|
|
|
|
+++ b/net/minecraft/server/CommandGamerule.java
|
2016-05-10 13:47:39 +02:00
|
|
|
@@ -22,7 +22,7 @@
|
2014-12-10 17:23:18 +01:00
|
|
|
}
|
|
|
|
|
2016-02-29 22:32:46 +01:00
|
|
|
public void execute(MinecraftServer minecraftserver, ICommandListener icommandlistener, String[] astring) throws CommandException {
|
|
|
|
- GameRules gamerules = this.a(minecraftserver);
|
2015-02-26 23:41:06 +01:00
|
|
|
+ GameRules gamerules = icommandlistener.getWorld().getGameRules(); // CraftBukkit - Use current world
|
2014-12-10 17:23:18 +01:00
|
|
|
String s = astring.length > 0 ? astring[0] : "";
|
|
|
|
String s1 = astring.length > 1 ? a(astring, 1) : "";
|
|
|
|
|
2016-05-10 13:47:39 +02:00
|
|
|
@@ -87,4 +87,11 @@
|
2016-02-29 22:32:46 +01:00
|
|
|
private GameRules a(MinecraftServer minecraftserver) {
|
|
|
|
return minecraftserver.getWorldServer(0).getGameRules();
|
2014-12-10 17:23:18 +01:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ // CraftBukkit start - fix decompile error
|
|
|
|
+ @Override
|
2015-02-26 23:41:06 +01:00
|
|
|
+ public int compareTo(ICommand o) {
|
2014-12-10 17:23:18 +01:00
|
|
|
+ return a((ICommand) o);
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|