From 1d22cf63f059d129cf7a62ddc05837221a5dd400 Mon Sep 17 00:00:00 2001 From: Brady Date: Tue, 23 Oct 2018 23:08:43 -0500 Subject: [PATCH] Lol --- src/main/java/baritone/bot/net/BotNetHandlerPlayClient.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/baritone/bot/net/BotNetHandlerPlayClient.java b/src/main/java/baritone/bot/net/BotNetHandlerPlayClient.java index 020ba9187..66dc7397e 100644 --- a/src/main/java/baritone/bot/net/BotNetHandlerPlayClient.java +++ b/src/main/java/baritone/bot/net/BotNetHandlerPlayClient.java @@ -354,8 +354,7 @@ public class BotNetHandlerPlayClient implements INetHandlerPlayClient { // We only care if we died if (packetIn.eventType == SPacketCombatEvent.Event.ENTITY_DIED) { - Entity died = this.user.getLocalEntity().world.getEntityByID(packetIn.playerId); - if (died == this.user.getLocalEntity()) { + if (packetIn.playerId == this.user.getLocalEntity().getEntityId()) { // Perform an instantaneous respawn this.networkManager.sendPacket(new CPacketClientStatus(CPacketClientStatus.State.PERFORM_RESPAWN)); }