mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
should have fixed spawn
This commit is contained in:
parent
28c0541164
commit
5b2c7bc9d0
3 changed files with 28 additions and 17 deletions
|
|
@ -38,6 +38,7 @@ class MobSpawner{
|
|||
}else{
|
||||
return false;
|
||||
}
|
||||
if(empty($this->level->usedChunks)) return false;
|
||||
$chunk = explode(".", array_rand($this->level->usedChunks, 1));
|
||||
$x = $chunk[0] * 16;
|
||||
$z = $chunk[1] * 16;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue