mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Do not perform scheduled updates on still lava/water (#134)
This commit is contained in:
parent
5d16ecc003
commit
ae6e0773ef
@ -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";
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user