mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-23 02:51:06 +01:00
Merge pull request 'Fix a variable typo causing problems with protection mods' (#2666) from fix_protection_mobs into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2666
This commit is contained in:
commit
28f5469989
1 changed files with 1 additions and 1 deletions
|
@ -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 (spawn_def.check_position and spawn_def.check_position(pos) or true)
|
||||||
and (not is_farm_animal(spawn_def.name) or is_grass)
|
and (not is_farm_animal(spawn_def.name) or is_grass)
|
||||||
and (spawn_def.type_of_spawning ~= "water" or is_water)
|
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
|
and not is_bedrock then
|
||||||
--only need to poll for node light if everything else worked
|
--only need to poll for node light if everything else worked
|
||||||
local gotten_light = get_node_light(pos)
|
local gotten_light = get_node_light(pos)
|
||||||
|
|
Loading…
Reference in a new issue