From 29d034ad0963d1c8c88dc0d45c2155f261eb6073 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 22 Jan 2018 20:01:38 +0100 Subject: [PATCH] Fix torches unplacable on disabled hoppers --- mods/ITEMS/mcl_torches/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_torches/init.lua b/mods/ITEMS/mcl_torches/init.lua index 33662a48c..7a0be478d 100644 --- a/mods/ITEMS/mcl_torches/init.lua +++ b/mods/ITEMS/mcl_torches/init.lua @@ -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 == 1 or def.groups.wall or def.groups.slab_top == 1 or (def.groups.stair == 1 and minetest.facedir_to_dir(node.param2).y ~= 0) then + if def.groups.glass or node.name == "mcl_hoppers:hopper" or node.name == "mcl_hoppers:hopper_side" or node.name == "mcl_hoppers:hopper_disabled" or node.name == "mcl_hoppers:hopper_side_disabled" or def.groups.fence == 1 or def.groups.wall or def.groups.slab_top == 1 or (def.groups.stair == 1 and minetest.facedir_to_dir(node.param2).y ~= 0) then if wdir ~= 1 then return itemstack end