Removed bad assumption that every Flowable descendent is an instant-breaking block

I'm wondering if there is even a point to Flowable at this point. Half of the blocks inheriting from it do not break instantly, or have some other modification to tool requirements.
This commit is contained in:
Dylan K. Taylor
2019-05-10 17:00:01 +01:00
parent 01ad568256
commit 650e186481
19 changed files with 65 additions and 10 deletions

View File

@ -39,6 +39,10 @@ class TripwireHook extends Flowable{
/** @var bool */
protected $powered = false;
public function __construct(BlockIdentifier $idInfo, string $name, ?BlockBreakInfo $breakInfo = null){
parent::__construct($idInfo, $name, $breakInfo ?? BlockBreakInfo::instant());
}
protected function writeStateToMeta() : int{
return Bearing::fromFacing($this->facing) | ($this->connected ? 0x04 : 0) | ($this->powered ? 0x08 : 0);
}