mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
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:
@ -27,15 +27,9 @@ use pocketmine\item\TieredTool;
|
||||
|
||||
class StonePressurePlate extends Transparent{
|
||||
|
||||
protected $id = self::STONE_PRESSURE_PLATE;
|
||||
|
||||
/** @var bool */
|
||||
protected $powered = false;
|
||||
|
||||
public function __construct(){
|
||||
|
||||
}
|
||||
|
||||
protected function writeStateToMeta() : int{
|
||||
return $this->powered ? 1 : 0;
|
||||
}
|
||||
@ -48,10 +42,6 @@ class StonePressurePlate extends Transparent{
|
||||
return 0b1;
|
||||
}
|
||||
|
||||
public function getName() : string{
|
||||
return "Stone Pressure Plate";
|
||||
}
|
||||
|
||||
public function isSolid() : bool{
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user