3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 13:00:06 +01:00

Inform the client when a move event is cancelled.

Dieser Commit ist enthalten in:
Rigby 2011-06-22 04:04:11 +01:00 committet von EvilSeph
Ursprung 568731f29c
Commit 7efaa1a02e

Datei anzeigen

@ -141,7 +141,8 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
// If the event is cancelled we move the player back to their old location.
if (event.isCancelled()) {
to = from;
this.player.netServerHandler.sendPacket(new Packet13PlayerLookMove(from.getX(), from.getY() + 1.6200000047683716D, from.getY(), from.getZ(), from.getYaw(), from.getPitch(), false));
return;
}
/* If a Plugin has changed the To destination then we teleport the Player