Typehinted things in BinaryStream, sorted some methods and related bugfixes

This commit is contained in:
Dylan K. Taylor
2017-06-07 13:53:10 +01:00
parent e18a3ac933
commit 78c09267e5
10 changed files with 162 additions and 136 deletions

View File

@ -1867,12 +1867,12 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$pk->spawnX = $spawnPosition->getFloorX();
$pk->spawnY = $spawnPosition->getFloorY();
$pk->spawnZ = $spawnPosition->getFloorZ();
$pk->hasAchievementsDisabled = 1;
$pk->hasAchievementsDisabled = true;
$pk->dayCycleStopTime = -1; //TODO: implement this properly
$pk->eduMode = 0;
$pk->eduMode = false;
$pk->rainLevel = 0; //TODO: implement these properly
$pk->lightningLevel = 0;
$pk->commandsEnabled = 1;
$pk->commandsEnabled = true;
$pk->levelId = "";
$pk->worldName = $this->server->getMotd();
$this->dataPacket($pk);
@ -3962,6 +3962,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$pk->pitch = $pitch;
$pk->yaw = $yaw;
$pk->mode = $mode;
$pk->onGround = $this->onGround;
if($targets !== null){
$this->server->broadcastPacket($targets, $pk);