mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-07-04 17:20:35 +02:00
return early if snapping valve/sensor to normal facedir
This commit is contained in:
@ -214,6 +214,7 @@ minetest.register_abm({
|
|||||||
|
|
||||||
if axisdir ~= 0 and axisdir ~= 5 then -- if it isn't horizontal, force it.
|
if axisdir ~= 0 and axisdir ~= 5 then -- if it isn't horizontal, force it.
|
||||||
minetest.swap_node(pos, {name = node.name, param2 = fdir_mod4})
|
minetest.swap_node(pos, {name = node.name, param2 = fdir_mod4})
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local fdir_to_pos = {
|
local fdir_to_pos = {
|
||||||
|
Reference in New Issue
Block a user