mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-23 19:11:06 +01:00
Merge pull request 'Fix forgotten biome check' (#1502) from jordan4ibanez/MineClone2:mineclone5 into mineclone5
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/1502
This commit is contained in:
commit
40478aa150
2 changed files with 7 additions and 1 deletions
|
@ -546,7 +546,7 @@ if mobs_spawn then
|
|||
minetest.register_globalstep(function(dtime)
|
||||
timer = timer + dtime
|
||||
if timer >= 15 then
|
||||
timer = 0--15--0
|
||||
timer = 0--15
|
||||
for _,player in ipairs(minetest.get_connected_players()) do
|
||||
for i = 1,math.random(5) do
|
||||
|
||||
|
@ -602,6 +602,11 @@ if mobs_spawn then
|
|||
goto continue
|
||||
end
|
||||
|
||||
--skip if not in correct biome
|
||||
if not biome_check(mob_def.biomes, gotten_biome) then
|
||||
goto continue
|
||||
end
|
||||
|
||||
--add this so mobs don't spawn inside nodes
|
||||
spawning_position.y = spawning_position.y + 1
|
||||
|
||||
|
|
|
@ -176,6 +176,7 @@ mobs_mc.spawn_height.water,
|
|||
mobs_mc.spawn_height.overworld_max)
|
||||
|
||||
|
||||
|
||||
mobs:spawn_specific(
|
||||
"mobs_mc:mooshroom",
|
||||
"overworld",
|
||||
|
|
Loading…
Reference in a new issue