mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Force new player position on spawn
This commit is contained in:
parent
05a81bebf4
commit
aa27c28e65
@ -1366,6 +1366,9 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
||||
$spawnPosition = $this->getSpawn();
|
||||
|
||||
$this->dead = false;
|
||||
|
||||
$this->setPosition($spawnPosition, true);
|
||||
|
||||
$pk = new StartGamePacket;
|
||||
$pk->seed = $this->getLevel()->getSeed();
|
||||
$pk->x = $this->x;
|
||||
|
Loading…
x
Reference in New Issue
Block a user