mirror of
https://github.com/minetest-mods/towercrane.git
synced 2024-11-26 09:13:53 +01:00
start crane bug fixed
This commit is contained in:
parent
507e12b345
commit
4a1b5b2333
@ -281,8 +281,8 @@ minetest.register_node("towercrane:mast_ctrl_off", {
|
|||||||
-- switch the crane ON
|
-- switch the crane ON
|
||||||
on_rightclick = function (pos, node, clicker)
|
on_rightclick = function (pos, node, clicker)
|
||||||
if is_my_crane(pos, clicker) and not is_operator(clicker) then
|
if is_my_crane(pos, clicker) and not is_operator(clicker) then
|
||||||
start_crane(pos, clicker)
|
|
||||||
if set_operator_privs(clicker, pos) then
|
if set_operator_privs(clicker, pos) then
|
||||||
|
start_crane(pos, clicker)
|
||||||
local pos1, pos2 = calc_construction_area(pos)
|
local pos1, pos2 = calc_construction_area(pos)
|
||||||
-- control player every second
|
-- control player every second
|
||||||
minetest.after(1, control_player, pos, pos1, pos2, clicker:get_player_name())
|
minetest.after(1, control_player, pos, pos1, pos2, clicker:get_player_name())
|
||||||
|
Loading…
Reference in New Issue
Block a user