mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 02:02:04 -07:00
Inform the client when a move event is cancelled.
This commit is contained in:
@@ -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 the event is cancelled we move the player back to their old location.
|
||||||
if (event.isCancelled()) {
|
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
|
/* If a Plugin has changed the To destination then we teleport the Player
|
||||||
|
Reference in New Issue
Block a user