From c2d82a615f87fb5e3cfe66f75ff8a0f9f4721873 Mon Sep 17 00:00:00 2001 From: 1F616EMO~nya Date: Fri, 26 Apr 2024 03:44:11 +0800 Subject: [PATCH] Fix regression from #16: unable to use crate if left while using one (#17) --- control.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control.lua b/control.lua index 1125d25..fabb340 100644 --- a/control.lua +++ b/control.lua @@ -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)