From 46b4641ba5a8172d4edd0812c24dd82659a0e133 Mon Sep 17 00:00:00 2001 From: asofold Date: Sat, 19 Mar 2016 23:01:36 +0100 Subject: [PATCH] Expect outgoing teleport after respawn. --- .../checks/net/protocollib/ProtocolLibComponent.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/NCPCompatProtocolLib/src/main/java/fr/neatmonster/nocheatplus/checks/net/protocollib/ProtocolLibComponent.java b/NCPCompatProtocolLib/src/main/java/fr/neatmonster/nocheatplus/checks/net/protocollib/ProtocolLibComponent.java index 08ca5456..dc92c433 100644 --- a/NCPCompatProtocolLib/src/main/java/fr/neatmonster/nocheatplus/checks/net/protocollib/ProtocolLibComponent.java +++ b/NCPCompatProtocolLib/src/main/java/fr/neatmonster/nocheatplus/checks/net/protocollib/ProtocolLibComponent.java @@ -173,7 +173,10 @@ public class ProtocolLibComponent implements DisableListener, INotifyReload, Joi public void onPlayerRespawn(final PlayerRespawnEvent event) { if (!registeredPacketAdapters.isEmpty()) { final Player player = event.getPlayer(); - dataFactory.getData(player).onJoin(player); + final NetData data = dataFactory.getData(player); + data.onJoin(player); + final Location loc = player.getLocation(); + data.teleportQueue.onTeleportEvent(loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch()); } }