From bcdd04b7f4565928fedffa7ffd983e727f45986b Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sun, 6 Jul 2014 06:54:18 -0400 Subject: [PATCH] fix crash in signs_lib --- signs_lib/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/signs_lib/init.lua b/signs_lib/init.lua index 9d6324d..3d8bc36 100644 --- a/signs_lib/init.lua +++ b/signs_lib/init.lua @@ -731,14 +731,14 @@ function signs_lib.register_fence_with_sign(fencename, fencewithsignname) if def_under and def_under.on_rightclick then return def_under.on_rightclick(pointed_thing.under, node_under, placer, itemstack) or itemstack - elseif def_under.buildable_to then + elseif def_under and def_under.buildable_to then minetest.add_node(pointed_thing.under, {name = fencename, param2 = fdir}) if not signs_lib.expect_infinite_stacks then itemstack:take_item() end placer:set_wielded_item(itemstack) return itemstack - elseif def_above.buildable_to then + elseif not def_above or def_above.buildable_to then minetest.add_node(pointed_thing.above, {name = fencename, param2 = fdir}) if not signs_lib.expect_infinite_stacks then itemstack:take_item()