Removed unused code, fixed undefined variables

This commit is contained in:
Shoghi Cervantes
2014-10-11 22:22:51 +02:00
parent bf89ea1cf6
commit ebb844fa52
16 changed files with 14 additions and 29 deletions

View File

@ -66,13 +66,11 @@ class Cactus extends Transparent{
$down = $this->getSide(0);
if($down->getID() !== self::SAND and $down->getID() !== self::CACTUS){
$this->getLevel()->useBreakOn($this);
return;
}else{
for($side = 2; $side <= 5; ++$side){
$b = $this->getSide($side);
if(!$b->isFlowable){
$this->getLevel()->useBreakOn($this);
return;
}
}
}
@ -94,8 +92,6 @@ class Cactus extends Transparent{
++$this->meta;
$this->getLevel()->setBlock($this, $this);
}
return;
}
}