mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-04 14:53:51 +01:00
Allow to place torches on upper slabs
This commit is contained in:
parent
60956add1f
commit
dfe03efd1b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user