Block: fixed use of full meta as variant in several cases

fixes #2940

now I need to go to the bathroom and wash this off my hands ... I'd forgotten how nasty this code is
This commit is contained in:
Dylan K. Taylor
2019-05-27 18:04:12 +01:00
parent 14bae72dd5
commit c38779f1fd
14 changed files with 16 additions and 16 deletions

View File

@ -56,7 +56,7 @@ class Flower extends Flowable{
self::TYPE_PINK_TULIP => "Pink Tulip",
self::TYPE_OXEYE_DAISY => "Oxeye Daisy"
];
return $names[$this->meta] ?? "Unknown";
return $names[$this->getVariant()] ?? "Unknown";
}
public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, Player $player = null) : bool{