From 1a9990fc924fa5b76e9cdbf951bf5a1187a502e6 Mon Sep 17 00:00:00 2001 From: kay27 Date: Sat, 8 May 2021 14:09:16 +0400 Subject: [PATCH] [mcl_mobspawners] Fix random crash, https://git.minetest.land/MineClone2/MineClone2/issues/1707 --- mods/ITEMS/mcl_mobspawners/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_mobspawners/init.lua b/mods/ITEMS/mcl_mobspawners/init.lua index d95395642..2c3c83c40 100644 --- a/mods/ITEMS/mcl_mobspawners/init.lua +++ b/mods/ITEMS/mcl_mobspawners/init.lua @@ -54,6 +54,7 @@ local spawn_count_overrides = { local function set_doll_properties(doll, mob) local mobinfo = minetest.registered_entities[mob] + if not mobinfo then return end local xs, ys if doll_size_overrides[mob] then xs = doll_size_overrides[mob].x @@ -95,7 +96,7 @@ All the arguments are optional! * Mob: ID of mob to spawn (default: mobs_mc:pig) * MinLight: Minimum light to spawn (default: 0) -* MaxLight: Maximum light to spawn (default: 15) + * MaxLight: Maximum light to spawn (default: 15) * MaxMobsInArea: How many mobs are allowed in the area around the spawner (default: 4) * PlayerDistance: Spawn mobs only if a player is within this distance; 0 to disable (default: 15) * YOffset: Y offset to spawn mobs; 0 to disable (default: 0)