mirror of
https://github.com/minetest-mods/towercrane.git
synced 2024-11-22 07:13:52 +01:00
This commit is contained in:
parent
b7bed50ac7
commit
c2d82a615f
@ -323,12 +323,12 @@ minetest.register_node("towercrane:mast_ctrl_off", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_joinplayer(function(player)
|
||||||
-- To recover from a crash, this must be done unconditionally
|
|
||||||
reset_operator_privs(player)
|
|
||||||
local pos = get_my_crane_pos(player)
|
local pos = get_my_crane_pos(player)
|
||||||
if pos then
|
if pos then
|
||||||
stop_crane(pos, player)
|
stop_crane(pos, player)
|
||||||
end
|
end
|
||||||
|
-- To recover from a crash, this must be done unconditionally
|
||||||
|
reset_operator_privs(player)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_on_leaveplayer(function(player)
|
minetest.register_on_leaveplayer(function(player)
|
||||||
|
Loading…
Reference in New Issue
Block a user