Explosion performance improvements

This commit is contained in:
GameHerobrine 2023-07-23 11:31:33 +03:00
parent 8a4ebcc907
commit 2b0ad36e14
5 changed files with 38 additions and 24 deletions

View file

@ -564,7 +564,7 @@ class BlockAPI{
$this->blockUpdate($pos->getSide(5), $type);
}
}
public function scheduleBlockUpdate(Position $pos, $delay, $type = BLOCK_UPDATE_SCHEDULED){
$type = (int) $type;
if($delay < 0){