Fixed ladders

This commit is contained in:
Shoghi Cervantes
2013-06-08 16:36:53 +02:00
parent 4f3e49b6a9
commit 8d2862a744
4 changed files with 9 additions and 6 deletions

View File

@@ -39,9 +39,11 @@ class LadderBlock extends TransparentBlock{
4 => 4,
5 => 5,
);
$this->meta = $faces[$face];
$this->level->setBlock($block, $this);
return true;
if(isset($faces[$face])){
$this->meta = $faces[$face];
$this->level->setBlock($block, $this);
return true;
}
}
return false;
}