diff --git a/src/pocketmine/block/StillLava.php b/src/pocketmine/block/StillLava.php index c273860d4..4a694f195 100644 --- a/src/pocketmine/block/StillLava.php +++ b/src/pocketmine/block/StillLava.php @@ -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"; } diff --git a/src/pocketmine/block/StillWater.php b/src/pocketmine/block/StillWater.php index 8c67f65a3..3e308ed90 100644 --- a/src/pocketmine/block/StillWater.php +++ b/src/pocketmine/block/StillWater.php @@ -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"; }