BinaryStream no longer extends stdClass, fixed a couple of minor bugs

Seems :shoghi: used stdClass to silence IDEs, which before ALPHA5 would complain about myriad undefined fields due to lack of type checking (switch based on packet id 🤦)
This commit is contained in:
Dylan K. Taylor
2017-05-15 19:28:39 +01:00
parent b41fef0276
commit a9afad10bc
5 changed files with 4 additions and 4 deletions

View File

@ -1875,7 +1875,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$pk->spawnX = $spawnPosition->getFloorX();
$pk->spawnY = $spawnPosition->getFloorY();
$pk->spawnZ = $spawnPosition->getFloorZ();
$pk->hasBeenLoadedInCreative = 1;
$pk->hasAchievementsDisabled = 1;
$pk->dayCycleStopTime = -1; //TODO: implement this properly
$pk->eduMode = 0;
$pk->rainLevel = 0; //TODO: implement these properly