mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +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;
|
namespace pocketmine\block;
|
||||||
|
|
||||||
|
use pocketmine\level\Level;
|
||||||
|
|
||||||
class StillLava extends Lava{
|
class StillLava extends Lava{
|
||||||
|
|
||||||
protected $id = self::STILL_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(){
|
public function getName(){
|
||||||
return "Still Lava";
|
return "Still Lava";
|
||||||
}
|
}
|
||||||
|
@ -21,10 +21,19 @@
|
|||||||
|
|
||||||
namespace pocketmine\block;
|
namespace pocketmine\block;
|
||||||
|
|
||||||
|
use pocketmine\level\Level;
|
||||||
|
|
||||||
class StillWater extends Water{
|
class StillWater extends Water{
|
||||||
|
|
||||||
protected $id = self::STILL_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(){
|
public function getName(){
|
||||||
return "Still Water";
|
return "Still Water";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user