diff options
author | EvilSeph <evilseph@gmail.com> | 2013-12-17 18:02:16 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2013-12-17 18:05:56 -0500 |
commit | 4f63a5f255ebb23cba967772bb48e51bbc68dc59 (patch) | |
tree | 4be23fe609969f6ded32cd899426e01e1fffb6d5 /src/main | |
parent | fbdc3a7a74fa988ea5672f9666e1bf83568c183b (diff) | |
download | craftbukkit-4f63a5f255ebb23cba967772bb48e51bbc68dc59.tar craftbukkit-4f63a5f255ebb23cba967772bb48e51bbc68dc59.tar.gz craftbukkit-4f63a5f255ebb23cba967772bb48e51bbc68dc59.tar.lz craftbukkit-4f63a5f255ebb23cba967772bb48e51bbc68dc59.tar.xz craftbukkit-4f63a5f255ebb23cba967772bb48e51bbc68dc59.zip |
Fix mistranslation issue for PlayerToggleFlightEvent. Fixes BUKKIT-5172
Thanks for pointing it out RingOfStorms!
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/net/minecraft/server/PlayerConnection.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java index d32bf3f8..e3bd043f 100644 --- a/src/main/java/net/minecraft/server/PlayerConnection.java +++ b/src/main/java/net/minecraft/server/PlayerConnection.java @@ -1602,7 +1602,7 @@ public class PlayerConnection implements PacketPlayInListener { public void a(PacketPlayInAbilities packetplayinabilities) { // CraftBukkit start - d() should be isFlying() if (this.player.abilities.canFly && this.player.abilities.isFlying != packetplayinabilities.d()) { - PlayerToggleFlightEvent event = new PlayerToggleFlightEvent(this.server.getPlayer(this.player), packetplayinabilities.f()); + PlayerToggleFlightEvent event = new PlayerToggleFlightEvent(this.server.getPlayer(this.player), packetplayinabilities.d()); this.server.getPluginManager().callEvent(event); if (!event.isCancelled()) { this.player.abilities.isFlying = packetplayinabilities.d(); // Actually set the player's flying status |