From 4f63a5f255ebb23cba967772bb48e51bbc68dc59 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Tue, 17 Dec 2013 18:02:16 -0500 Subject: [PATCH] Fix mistranslation issue for PlayerToggleFlightEvent. Fixes BUKKIT-5172 Thanks for pointing it out RingOfStorms! --- src/main/java/net/minecraft/server/PlayerConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java index d32bf3f89a..e3bd043f84 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