mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Fixed torch facing bug with wrong metadata
torches cannot face down
This commit is contained in:
@ -40,12 +40,12 @@ class Torch extends Flowable{
|
||||
}
|
||||
|
||||
protected function writeStateToMeta() : int{
|
||||
return $this->facing === Facing::DOWN ? 0 : 6 - $this->facing;
|
||||
return 6 - $this->facing;
|
||||
}
|
||||
|
||||
public function readStateFromMeta(int $meta) : void{
|
||||
if($meta === 0){
|
||||
$this->facing = Facing::DOWN;
|
||||
$this->facing = Facing::UP;
|
||||
}else{
|
||||
$this->facing = 6 - $meta;
|
||||
}
|
||||
|
Reference in New Issue
Block a user