forked from VoxeLibre/VoxeLibre
[mcl_mobspawners] Fix random crash, MineClone2/MineClone2#1707
This commit is contained in:
parent
37350e81c9
commit
4bb27a0d79
|
@ -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 New Issue