forked from Mineclonia/Mineclonia
Disable rotation of torches and signs
This commit is contained in:
parent
d502ac3bec
commit
f218180eaa
|
@ -390,15 +390,11 @@ minetest.register_node("mcl_signs:wall_sign", {
|
||||||
on_punch = function(pos, node, puncher)
|
on_punch = function(pos, node, puncher)
|
||||||
update_sign(pos)
|
update_sign(pos)
|
||||||
end,
|
end,
|
||||||
|
on_rotate = false,
|
||||||
_mcl_hardness = 1,
|
_mcl_hardness = 1,
|
||||||
_mcl_blast_resistance = 5,
|
_mcl_blast_resistance = 5,
|
||||||
})
|
})
|
||||||
|
|
||||||
local on_rotate
|
|
||||||
if minetest.get_modpath("screwdriver") then
|
|
||||||
on_rotate = screwdriver.disallow
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Standing sign nodes.
|
-- Standing sign nodes.
|
||||||
-- 4 rotations at 0°, 22.5°, 45° and 67.5°.
|
-- 4 rotations at 0°, 22.5°, 45° and 67.5°.
|
||||||
-- These are 4 out of 16 possible rotations.
|
-- These are 4 out of 16 possible rotations.
|
||||||
|
@ -424,8 +420,8 @@ local ssign = {
|
||||||
on_punch = function(pos, node, puncher)
|
on_punch = function(pos, node, puncher)
|
||||||
update_sign(pos)
|
update_sign(pos)
|
||||||
end,
|
end,
|
||||||
|
on_rotate = false,
|
||||||
|
|
||||||
on_rotate = on_rotate,
|
|
||||||
_mcl_hardness = 1,
|
_mcl_hardness = 1,
|
||||||
_mcl_blast_resistance = 5,
|
_mcl_blast_resistance = 5,
|
||||||
}
|
}
|
||||||
|
|
|
@ -153,6 +153,7 @@ mcl_torches.register_torch = function(substring, description, doc_items_longdesc
|
||||||
wall_side = {-0.5, -0.5, -0.1, -0.2, 0.1, 0.1},
|
wall_side = {-0.5, -0.5, -0.1, -0.2, 0.1, 0.1},
|
||||||
},
|
},
|
||||||
sounds = sounds,
|
sounds = sounds,
|
||||||
|
on_rotate = false,
|
||||||
}
|
}
|
||||||
if moredef ~= nil then
|
if moredef ~= nil then
|
||||||
for k,v in pairs(moredef) do
|
for k,v in pairs(moredef) do
|
||||||
|
|
Loading…
Reference in New Issue