mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-04-22 23:25:15 +02:00
Fix crash
This commit is contained in:
parent
e5279a2723
commit
9474da5e75
1 changed files with 1 additions and 1 deletions
|
@ -763,7 +763,7 @@ local function spawn_group(p, mob, spawn_on, amount_to_spawn, parent_state)
|
|||
-- Get state for each new position
|
||||
local state, node = build_state_for_position(sp, parent_state, true, true)
|
||||
|
||||
if spawn_check(sp, state, node, mob) then
|
||||
if state and spawn_check(sp, state, node, mob) then
|
||||
if mob.type_of_spawning == "water" then
|
||||
sp = get_water_spawn(sp)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue