forked from mtcontrib/pipeworks
Remove unused loop variables, trailing whitespace and fix mixed-whitespace indentations
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
local S = minetest.get_translator("pipeworks")
|
||||
|
||||
if not minetest.get_modpath("auto_tree_tap") and
|
||||
if not minetest.get_modpath("auto_tree_tap") and
|
||||
minetest.get_modpath("technic") then
|
||||
|
||||
minetest.register_abm({
|
||||
@ -38,10 +38,10 @@ if not minetest.get_modpath("auto_tree_tap") and
|
||||
after_place_node = function (pos, placer)
|
||||
pipeworks.scan_for_tube_objects(pos, placer)
|
||||
local placer_pos = placer:get_pos()
|
||||
|
||||
|
||||
--correct for the player's height
|
||||
if placer:is_player() then placer_pos.y = placer_pos.y + 1.5 end
|
||||
|
||||
|
||||
--correct for 6d facedir
|
||||
if placer_pos then
|
||||
local dir = {
|
||||
|
Reference in New Issue
Block a user