summaryrefslogtreecommitdiffstats
path: root/nms-patches/WorldData.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/WorldData.patch')
-rw-r--r--nms-patches/WorldData.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/nms-patches/WorldData.patch b/nms-patches/WorldData.patch
index a45ed3fc..ce46f4dd 100644
--- a/nms-patches/WorldData.patch
+++ b/nms-patches/WorldData.patch
@@ -1,5 +1,5 @@
---- /home/matt/mc-dev-private//net/minecraft/server/WorldData.java 2015-03-19 21:25:55.170142151 +0000
-+++ src/main/java/net/minecraft/server/WorldData.java 2015-03-19 21:25:55.170142151 +0000
+--- /home/matt/mc-dev-private//net/minecraft/server/WorldData.java 2015-05-05 21:41:21.384628182 +0100
++++ src/main/java/net/minecraft/server/WorldData.java 2015-05-05 21:41:21.384628182 +0100
@@ -1,6 +1,11 @@
package net.minecraft.server;
@@ -63,14 +63,14 @@
public void setDifficulty(EnumDifficulty enumdifficulty) {
this.z = enumdifficulty;
+ // CraftBukkit start
-+ PacketPlayOutServerDifficulty packet = new PacketPlayOutServerDifficulty(this.y(), this.z()); // PAIL: Rename getDifficulty, isDifficultyLocked
++ PacketPlayOutServerDifficulty packet = new PacketPlayOutServerDifficulty(this.getDifficulty(), this.isDifficultyLocked());
+ for (EntityPlayer player : (java.util.List<EntityPlayer>) (java.util.List) world.players) {
+ player.playerConnection.sendPacket(packet);
+ }
+ // CraftBukkit end
}
- public boolean z() {
+ public boolean isDifficultyLocked() {
@@ -664,4 +700,12 @@
}
});