Fix for crashes via item (MCPE-1198)

This commit is contained in:
Shoghi Cervantes Pueyo 2013-02-04 15:02:21 +01:00
parent 3578b90a39
commit f1c593d809
4 changed files with 6 additions and 18 deletions

View file

@ -31,7 +31,7 @@ class LadderBlock extends TransparentBlock{
}
public function place(BlockAPI $level, Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
if($block->inWorld === true){
if($block->isTransparent === false){
if($target->isTransparent === false){
$faces = array(
2 => 2,
3 => 3,