Fix FakePlayer respawn

This commit is contained in:
Felix Cravic 2020-07-06 19:35:24 +02:00
parent 85aad4f044
commit c061e2a71f

View File

@ -83,9 +83,12 @@ public class FakePlayerController {
}
public void respawn() {
ClientStatusPacket statusPacket = new ClientStatusPacket();
// Sending the respawn packet for some reason
// Is related to FakePlayer#showPlayer and the tablist option (probably because of the scheduler)
/*ClientStatusPacket statusPacket = new ClientStatusPacket();
statusPacket.action = ClientStatusPacket.Action.PERFORM_RESPAWN;
addToQueue(statusPacket);
addToQueue(statusPacket);*/
fakePlayer.respawn();
}
public void setHeldItem(short slot) {