Fixed assert failure when placing northeast/northwest powered rails

This commit is contained in:
Dylan K. Taylor 2018-09-30 14:17:30 +01:00
parent 5344c0a627
commit 1a2312418b
2 changed files with 1 additions and 5 deletions

View File

@ -90,7 +90,7 @@ abstract class BaseRail extends Flowable{
}
public function getStateBitmask() : int{
return 0b111;
return 0b1111;
}
public function getHardness() : float{

View File

@ -38,10 +38,6 @@ class RedstoneRail extends BaseRail{
$this->powered = ($meta & self::FLAG_POWERED) !== 0;
}
public function getStateBitmask() : int{
return 0b1111;
}
protected function getConnectionsFromMeta(int $meta) : array{
return self::CONNECTIONS[$meta & ~self::FLAG_POWERED] ?? [];
}