mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 17:29:44 +00:00
Fixed assert failure when placing northeast/northwest powered rails
This commit is contained in:
parent
5344c0a627
commit
1a2312418b
@ -90,7 +90,7 @@ abstract class BaseRail extends Flowable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getStateBitmask() : int{
|
public function getStateBitmask() : int{
|
||||||
return 0b111;
|
return 0b1111;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getHardness() : float{
|
public function getHardness() : float{
|
||||||
|
@ -38,10 +38,6 @@ class RedstoneRail extends BaseRail{
|
|||||||
$this->powered = ($meta & self::FLAG_POWERED) !== 0;
|
$this->powered = ($meta & self::FLAG_POWERED) !== 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getStateBitmask() : int{
|
|
||||||
return 0b1111;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function getConnectionsFromMeta(int $meta) : array{
|
protected function getConnectionsFromMeta(int $meta) : array{
|
||||||
return self::CONNECTIONS[$meta & ~self::FLAG_POWERED] ?? [];
|
return self::CONNECTIONS[$meta & ~self::FLAG_POWERED] ?? [];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user