diff --git a/src/pocketmine/block/Tripwire.php b/src/pocketmine/block/Tripwire.php index 58c45a065b..23764bb6b1 100644 --- a/src/pocketmine/block/Tripwire.php +++ b/src/pocketmine/block/Tripwire.php @@ -31,16 +31,19 @@ class Tripwire extends Flowable{ /** @var bool */ protected $triggered = false; /** @var bool */ + protected $suspended = false; //unclear usage, makes hitbox bigger if set + /** @var bool */ protected $connected = false; /** @var bool */ protected $disarmed = false; protected function writeStateToMeta() : int{ - return ($this->triggered ? 0x01 : 0) | ($this->connected ? 0x04 : 0) | ($this->disarmed ? 0x08 : 0); + return ($this->triggered ? 0x01 : 0) | ($this->suspended ? 0x02: 0) | ($this->connected ? 0x04 : 0) | ($this->disarmed ? 0x08 : 0); } public function readStateFromData(int $id, int $stateMeta) : void{ $this->triggered = ($stateMeta & 0x01) !== 0; + $this->suspended = ($stateMeta & 0x02) !== 0; $this->connected = ($stateMeta & 0x04) !== 0; $this->disarmed = ($stateMeta & 0x08) !== 0; }