mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-23 02:51:06 +01:00
[mcl_mobspawners] Fix random crash, https://git.minetest.land/MineClone2/MineClone2/issues/1707
This commit is contained in:
parent
37350e81c9
commit
4bb27a0d79
1 changed files with 2 additions and 1 deletions
|
@ -54,6 +54,7 @@ local spawn_count_overrides = {
|
||||||
|
|
||||||
local function set_doll_properties(doll, mob)
|
local function set_doll_properties(doll, mob)
|
||||||
local mobinfo = minetest.registered_entities[mob]
|
local mobinfo = minetest.registered_entities[mob]
|
||||||
|
if not mobinfo then return end
|
||||||
local xs, ys
|
local xs, ys
|
||||||
if doll_size_overrides[mob] then
|
if doll_size_overrides[mob] then
|
||||||
xs = doll_size_overrides[mob].x
|
xs = doll_size_overrides[mob].x
|
||||||
|
|
Loading…
Reference in a new issue