From 611d8808acb68dc072c56714ed23d0ac0ba5c646 Mon Sep 17 00:00:00 2001 From: cora Date: Fri, 16 Sep 2022 01:18:10 +0200 Subject: [PATCH] Fix a variable typo causing crashes with prot. mod --- mods/ENTITIES/mcl_mobs/spawning.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/spawning.lua b/mods/ENTITIES/mcl_mobs/spawning.lua index 7a67bd4c8..f070fa56f 100644 --- a/mods/ENTITIES/mcl_mobs/spawning.lua +++ b/mods/ENTITIES/mcl_mobs/spawning.lua @@ -457,7 +457,7 @@ local function spawn_check(pos,spawn_def) and (spawn_def.check_position and spawn_def.check_position(pos) or true) and (not is_farm_animal(spawn_def.name) or is_grass) and (spawn_def.type_of_spawning ~= "water" or is_water) - and ( not spawn_protected or not minetest.is_protected(s, "") ) + and ( not spawn_protected or not minetest.is_protected(pos, "") ) and not is_bedrock then --only need to poll for node light if everything else worked local gotten_light = get_node_light(pos)