mirror of
https://github.com/minetest-mods/towercrane.git
synced 2024-11-21 23:03:50 +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)
|
||||
-- To recover from a crash, this must be done unconditionally
|
||||
reset_operator_privs(player)
|
||||
local pos = get_my_crane_pos(player)
|
||||
if pos then
|
||||
stop_crane(pos, player)
|
||||
end
|
||||
-- To recover from a crash, this must be done unconditionally
|
||||
reset_operator_privs(player)
|
||||
end)
|
||||
|
||||
minetest.register_on_leaveplayer(function(player)
|
||||
|
Loading…
Reference in New Issue
Block a user