1
0
Fork 0

Fix a variable typo causing crashes with prot. mod

This commit is contained in:
cora 2022-09-16 01:18:10 +02:00
parent 015e755401
commit 611d8808ac
1 changed files with 1 additions and 1 deletions

View File

@ -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)