bed fixes

This commit is contained in:
D00Med 2017-02-06 13:12:37 +10:00
parent 90115eb2cf
commit 29dff7a914
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ beds.register_bed("beds:bed_cyan", {
beds.register_bed("beds:bed_grey", {
description = "Grey Bed",
inventory_image = "beds_grey.png",
wield_image = "beds_dgrey.png",
wield_image = "beds_grey.png",
tiles = {
"beds_bed_grey.png"
},

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", "beds:bed_yellow_bottom", "beds:bed_blue_bottom", "beds:bed_orange_bottom", "beds:bed_cyan_bottom", "beds:bed_pink_bottom", "beds:bed_black_bottom", "beds:bed_white_bottom", "beds:bed_darkgrey_bottom", "beds:bed_grey_bottom", "beds:bed_green_bottom", "beds:bed_purple_bottom", "beds:bed_darkgreen_bottom"})
local beds = minetest.find_node_near(pos, 5, {"beds:bed_bottom", "beds:bed", "beds:bed_yellow_bottom", "beds:bed_brown_bottom", "beds:bed_magenta_bottom", "beds:bed_blue_bottom", "beds:bed_orange_bottom", "beds:bed_cyan_bottom", "beds:bed_pink_bottom", "beds:bed_black_bottom", "beds:bed_white_bottom", "beds:bed_darkgrey_bottom", "beds:bed_grey_bottom", "beds:bed_green_bottom", "beds:bed_purple_bottom", "beds:bed_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