mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Allow to place torches on upper slabs
This commit is contained in:
parent
60956add1f
commit
dfe03efd1b
1 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ mcl_torches.register_torch = function(substring, description, doc_items_longdesc
|
||||||
-- * monster spawner
|
-- * monster spawner
|
||||||
-- * Fence, wall, glass, hopper: Only on top
|
-- * Fence, wall, glass, hopper: Only on top
|
||||||
-- * Monster spawner
|
-- * 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)
|
-- * Stairs: Only on top if upside down (TODO)
|
||||||
|
|
||||||
-- Special forbidden nodes:
|
-- 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
|
if node.name ~= "mcl_nether:soul_sand" and node.name ~= "mcl_mobspawners:spawner" and
|
||||||
((not def.groups.solid) or (not def.groups.opaque)) then
|
((not def.groups.solid) or (not def.groups.opaque)) then
|
||||||
-- Only allow top placement on these nodes
|
-- 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
|
if wdir ~= 1 then
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue