From dfe03efd1b8fdd1f5543ae6da21e46a5af597b8f Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 5 Jun 2017 19:46:00 +0200 Subject: [PATCH] Allow to place torches on upper slabs --- mods/ITEMS/mcl_torches/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_torches/init.lua b/mods/ITEMS/mcl_torches/init.lua index eaf680c5..d14c4dc7 100644 --- a/mods/ITEMS/mcl_torches/init.lua +++ b/mods/ITEMS/mcl_torches/init.lua @@ -72,7 +72,7 @@ mcl_torches.register_torch = function(substring, description, doc_items_longdesc -- * monster spawner -- * Fence, wall, glass, hopper: Only on top -- * Monster spawner - -- * Slab: Only on top if upside down (TODO) + -- * Slab: Only on top if upside down -- * Stairs: Only on top if upside down (TODO) -- Special forbidden nodes: @@ -82,7 +82,7 @@ mcl_torches.register_torch = function(substring, description, doc_items_longdesc if node.name ~= "mcl_nether:soul_sand" and node.name ~= "mcl_mobspawners:spawner" and ((not def.groups.solid) or (not def.groups.opaque)) then -- Only allow top placement on these nodes - if def.groups.glass or node.name == "mcl_hoppers:hopper" or node.name == "mcl_hoppers:hopper_side" or def.groups.fence or def.groups.wall then + if def.groups.glass or node.name == "mcl_hoppers:hopper" or node.name == "mcl_hoppers:hopper_side" or def.groups.fence == 1 or def.groups.wall or def.groups.slab_top == 1 then if wdir ~= 1 then return itemstack end