Fixed #418 Placing blocks on top of Snow replaces it now

This commit is contained in:
Shoghi Cervantes 2013-11-27 15:28:10 +01:00
parent 0d6ae6067c
commit 2f7e5688e2
3 changed files with 8 additions and 2 deletions

View file

@ -419,6 +419,12 @@ class BlockAPI{
return $this->cancelAction($block, $player, false);
}
if($target->isReplaceable === true){
$block = $target;
$hand->position($block);
$face = -1;
}
if($hand->isSolid === true and $player->entity->inBlock($block)){
return $this->cancelAction($block, $player, false); //Entity in block
}