mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
vanilla(or close to vanila) liquid physics
This commit is contained in:
parent
589bc9f1c0
commit
9c21a984cd
5 changed files with 12 additions and 26 deletions
|
|
@ -41,7 +41,6 @@ class Explosion{
|
|||
$index = ($vBlock->x << 16) + ($vBlock->z << 8) + $vBlock->y;
|
||||
|
||||
if(StaticBlock::getIsLiquid($blockID) && !isset($visited[$index])){
|
||||
ServerAPI::request()->api->block->scheduleBlockUpdate(new Position($vBlock->x, $vBlock->y, $vBlock->z, $this->level), 5, BLOCK_UPDATE_NORMAL);
|
||||
$visited[$index] = true;
|
||||
}
|
||||
|
||||
|
|
@ -202,7 +201,7 @@ class Explosion{
|
|||
}
|
||||
}
|
||||
}
|
||||
$this->level->fastSetBlockUpdate($x, $y, $z, 0, 0);
|
||||
$this->level->fastSetBlockUpdate($x, $y, $z, 0, 0, true);
|
||||
$send[] = $xyz;
|
||||
}
|
||||
$pk = new ExplodePacket;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue