Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Fix mistranslation issue for PlayerToggleFlightEvent. Fixes BUKKIT-5172
Thanks for pointing it out RingOfStorms!
Dieser Commit ist enthalten in:
Ursprung
fbdc3a7a74
Commit
4f63a5f255
@ -1602,7 +1602,7 @@ public class PlayerConnection implements PacketPlayInListener {
|
|||||||
public void a(PacketPlayInAbilities packetplayinabilities) {
|
public void a(PacketPlayInAbilities packetplayinabilities) {
|
||||||
// CraftBukkit start - d() should be isFlying()
|
// CraftBukkit start - d() should be isFlying()
|
||||||
if (this.player.abilities.canFly && this.player.abilities.isFlying != packetplayinabilities.d()) {
|
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);
|
this.server.getPluginManager().callEvent(event);
|
||||||
if (!event.isCancelled()) {
|
if (!event.isCancelled()) {
|
||||||
this.player.abilities.isFlying = packetplayinabilities.d(); // Actually set the player's flying status
|
this.player.abilities.isFlying = packetplayinabilities.d(); // Actually set the player's flying status
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren