Do not perform scheduled updates on still lava/water (#134)

This commit is contained in:
Dylan K. Taylor 2016-12-09 16:13:39 +00:00 committed by GitHub
parent 5d16ecc003
commit ae6e0773ef
2 changed files with 18 additions and 0 deletions

View File

@ -21,10 +21,19 @@
namespace pocketmine\block;
use pocketmine\level\Level;
class StillLava extends Lava{
protected $id = self::STILL_LAVA;
public function onUpdate($type){
if($type !== Level::BLOCK_UPDATE_SCHEDULED){
return parent::onUpdate($type);
}
return false;
}
public function getName(){
return "Still Lava";
}

View File

@ -21,10 +21,19 @@
namespace pocketmine\block;
use pocketmine\level\Level;
class StillWater extends Water{
protected $id = self::STILL_WATER;
public function onUpdate($type){
if($type !== Level::BLOCK_UPDATE_SCHEDULED){
return parent::onUpdate($type);
}
return false;
}
public function getName(){
return "Still Water";
}