Trapdoor: fix bad meth in comment

This commit is contained in:
Dylan K. Taylor 2018-09-28 16:44:30 +01:00
parent 2600cf5977
commit 594a2041b6

View File

@ -58,7 +58,7 @@ class Trapdoor extends Transparent{
} }
public function readStateFromMeta(int $meta) : void{ public function readStateFromMeta(int $meta) : void{
//TODO: in PC the values are reversed (3 - (5 - facing)) //TODO: in PC the values are reversed (facing - 2)
$this->facing = 5 - ($meta & 0x03); $this->facing = 5 - ($meta & 0x03);
$this->top = ($meta & self::MASK_UPPER) !== 0; $this->top = ($meta & self::MASK_UPPER) !== 0;