Block: Clean up internal constructor inconsistencies

I don't dare look how big this commit is or how many bugs it introduced...
This commit is contained in:
Dylan K. Taylor
2019-02-20 19:21:51 +00:00
parent e93464f318
commit 89fce7712a
141 changed files with 427 additions and 1609 deletions

View File

@ -28,8 +28,6 @@ use pocketmine\math\Facing;
class WallSign extends SignPost{
protected $id = self::WALL_SIGN;
/** @var int */
protected $facing = Facing::NORTH;
@ -45,10 +43,6 @@ class WallSign extends SignPost{
return 0b111;
}
public function getName() : string{
return "Wall Sign";
}
public function onNearbyBlockChange() : void{
if($this->getSide(Facing::opposite($this->facing))->getId() === self::AIR){
$this->getLevel()->useBreakOn($this);