works with all beds

This commit is contained in:
D00Med 2017-02-05 10:25:01 +10:00
parent 61647395e5
commit ab2891cc1b

View File

@ -45,7 +45,7 @@ minetest.register_abm({
minetest.chat_send_all("npc spawned")
end
end
local beds = minetest.find_node_near(pos, 5, {"beds:bed_bottom", "beds:bed"})
local beds = minetest.find_node_near(pos, 5, {"beds:bed_bottom", "beds:bed", "beds:yellow_bottom", "beds:blue_bottom", "beds:orange_bottom", "beds:cyan_bottom", "beds:pink_bottom", "beds:black_bottom", "beds:white_bottom", "beds:darkgrey_bottom", "beds:grey_bottom", "beds:green_bottom", "beds:purple_bottom", "beds:darkgreen_bottom"})
local light_sources = minetest.find_node_near(pos, 5, {"default:torch", "default:torch_wall", "default:torch_floor", "default:torch_ceiling", "mese_lamp"})
local doors = minetest.find_node_near(pos, 5, {"doors:door_wood_a", "doors:door_glass_a", "doors:door_obsidian_glass_a"})
if beds ~= nil and light_sources ~= nil and doors ~= nil then