mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-16 21:21:22 +01:00
Fix FakePlayer respawn
This commit is contained in:
parent
85aad4f044
commit
c061e2a71f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user