onUpdate is now static, disabled rail, water and lava updates to rework.

This commit is contained in:
GameHerobrine 2024-05-20 13:16:48 +03:00
parent 3c37dc446e
commit ee989ef556
38 changed files with 329 additions and 367 deletions

View file

@ -60,9 +60,10 @@ class WaterBlock extends LiquidBlock{
return null;
}
public function onUpdate($type){
//return false;
$newId = $this->id;
public static function onUpdate(Level $level, $x, $y, $z, $type){
//TODO rewrite
return false;
/*$newId = $this->id;
$level = $this->meta & 0x07;
if($type !== BLOCK_UPDATE_NORMAL){
@ -117,6 +118,6 @@ class WaterBlock extends LiquidBlock{
ServerAPI::request()->api->block->blockUpdateAround($this, BLOCK_UPDATE_NORMAL, 5);
$this->level->setBlock($this, new AirBlock(), false, false, true);
}
return false;
return false;*/
}
}