Skip to content

Commit

Permalink
rotate beams when they get placed by hand (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
SwissalpS committed Nov 2, 2020
1 parent 7e427b0 commit 9563fee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ function beacon.register_color(name, colorstring, coloring_item)
diggable = false,
climbable = beacon.config.beam_climbable,
selection_box = { type = "fixed", fixed = {0.125, 0.5, 0.125, -0.125, -0.5, -0.125} },
on_place = beacon.on_place,
on_rotate = function(pos, node, user, mode, new_param2)
return false -- no rotation with screwdriver
end,
Expand All @@ -126,6 +127,7 @@ function beacon.register_color(name, colorstring, coloring_item)
diggable = false,
climbable = beacon.config.beam_climbable,
selection_box = { type = "fixed", fixed = {0.125, 0.5, 0.125, -0.125, -0.5, -0.125} },
on_place = beacon.on_place,
on_rotate = function(pos, node, user, mode, new_param2)
return false -- no rotation with screwdriver
end,
Expand Down Expand Up @@ -211,3 +213,4 @@ function beacon.register_color(name, colorstring, coloring_item)
})
end
end

0 comments on commit 9563fee

Please sign in to comment.