diff --git a/src/pocketmine/PocketMine.php b/src/pocketmine/PocketMine.php index 1efdd0a32..735b529af 100644 --- a/src/pocketmine/PocketMine.php +++ b/src/pocketmine/PocketMine.php @@ -37,7 +37,7 @@ namespace pocketmine { use pocketmine\wizard\SetupWizard; const NAME = "PocketMine-MP"; - const BASE_VERSION = "3.0.2"; + const BASE_VERSION = "4.0.0"; const IS_DEVELOPMENT_BUILD = true; const BUILD_NUMBER = 0; diff --git a/src/pocketmine/block/SignPost.php b/src/pocketmine/block/SignPost.php index a76676254..fdd4a0e1a 100644 --- a/src/pocketmine/block/SignPost.php +++ b/src/pocketmine/block/SignPost.php @@ -61,7 +61,7 @@ class SignPost extends Transparent{ if($face !== Vector3::SIDE_DOWN){ if($face === Vector3::SIDE_UP){ - $this->meta = floor((($player->yaw + 180) * 16 / 360) + 0.5) & 0x0f; + $this->meta = $player !== null ? (floor((($player->yaw + 180) * 16 / 360) + 0.5) & 0x0f) : 0; $this->getLevel()->setBlock($blockReplace, $this, true); }else{ $this->meta = $face;