mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-06-29 23:00:49 +02:00
Version MFF.
This commit is contained in:
6
legacy.lua
Normal file → Executable file
6
legacy.lua
Normal file → Executable file
@ -1,5 +1,5 @@
|
||||
|
||||
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({
|
||||
@ -37,10 +37,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:getpos()
|
||||
|
||||
|
||||
--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