mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +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:
@ -39,15 +39,9 @@ class Vine extends Flowable{
|
||||
private const FLAG_NORTH = 0x04;
|
||||
private const FLAG_EAST = 0x08;
|
||||
|
||||
protected $id = self::VINE;
|
||||
|
||||
/** @var bool[] */
|
||||
protected $faces = [];
|
||||
|
||||
public function __construct(){
|
||||
|
||||
}
|
||||
|
||||
protected function writeStateToMeta() : int{
|
||||
return
|
||||
(isset($this->faces[Facing::SOUTH]) ? self::FLAG_SOUTH : 0) |
|
||||
@ -73,10 +67,6 @@ class Vine extends Flowable{
|
||||
}
|
||||
}
|
||||
|
||||
public function getName() : string{
|
||||
return "Vines";
|
||||
}
|
||||
|
||||
public function getHardness() : float{
|
||||
return 0.2;
|
||||
}
|
||||
|
Reference in New Issue
Block a user