Fixed liquid CPU leaks and some flow issues

Liquid still needs a total rewrite, but at least it won't constantly waste CPU anymore.
This commit is contained in:
Dylan K. Taylor
2017-05-07 11:15:52 +01:00
parent acaa0d2740
commit 210bdc2436
3 changed files with 11 additions and 32 deletions

View File

@ -29,14 +29,6 @@ class StillWater extends Water{
protected $id = self::STILL_WATER;
public function onUpdate($type){
//TODO: add freezing in cold biomes
if($type !== Level::BLOCK_UPDATE_SCHEDULED){
return parent::onUpdate($type);
}
return false;
}
public function getName(){
return "Still Water";
}