Fixed item frames placed on invalid blocks, close #1804

This commit is contained in:
Dylan K. Taylor 2017-12-13 09:46:18 +00:00
parent 3beccc47cd
commit 67a576722c

View File

@ -75,7 +75,7 @@ class ItemFrame extends Flowable{
}
public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, Player $player = null) : bool{
if($face === Vector3::SIDE_DOWN or $face === Vector3::SIDE_UP){
if($face === Vector3::SIDE_DOWN or $face === Vector3::SIDE_UP or !$blockClicked->isSolid()){
return false;
}