diff --git a/mt_style.lua b/mt_style.lua index 7c8d565..e41851a 100644 --- a/mt_style.lua +++ b/mt_style.lua @@ -22,7 +22,10 @@ minetest.register_craftitem(":default:torch", { return itemstack end itemstack, retval = minetest.item_place(fakestack, placer, pointed_thing, wdir) - itemstack:set_name("default:torch") + if itemstack then + itemstack:set_name("default:torch") + -- else, ignore - placing not allowed here + end return itemstack end