mirror of
https://github.com/Minestom/Minestom.git
synced 2024-06-26 06:24:54 +02:00
Use player respawnPosition in the SpawnPosition packet
This commit is contained in:
parent
4353e10741
commit
44fbeaa2d8
|
@ -214,9 +214,9 @@ public class Player extends LivingEntity implements CommandSender {
|
|||
playerConnection.sendPacket(serverDifficultyPacket);
|
||||
|
||||
SpawnPositionPacket spawnPositionPacket = new SpawnPositionPacket();
|
||||
spawnPositionPacket.x = 0;
|
||||
spawnPositionPacket.y = 0;
|
||||
spawnPositionPacket.z = 0;
|
||||
spawnPositionPacket.x = (int) respawnPoint.getX();
|
||||
spawnPositionPacket.y = (int) respawnPoint.getY();
|
||||
spawnPositionPacket.z = (int) respawnPoint.getZ();
|
||||
playerConnection.sendPacket(spawnPositionPacket);
|
||||
|
||||
// Add player to list with spawning skin
|
||||
|
|
Loading…
Reference in New Issue
Block a user