reworked mob spawn, added mob despawn if far away, mobs will not die if their pos is >255 or <0, getBlockID/getBlock return INVISIBLE_BEDROCK if pos >255 or <0 (xz)

This commit is contained in:
GameHerobrine 2024-03-04 07:18:40 +03:00
parent 271f82f5ed
commit 9ee4b08657
6 changed files with 98 additions and 25 deletions

View file

@ -467,7 +467,7 @@ class Level{
$this->checkSleep();
if($server->ticks % 40 === 0){ //40 ticks delay
if($server->ticks % 10 === 0){ //10 ticks delay
$this->mobSpawner->handle();
}