This commit is contained in:
Brady
2018-10-23 23:08:43 -05:00
parent d4b3e71694
commit 1d22cf63f0

View File

@@ -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));
}