From b79f43ab3b5c980d296b13ee58f50aa55940c4d1 Mon Sep 17 00:00:00 2001 From: unknown <24964441+wsor4035@users.noreply.github.com> Date: Thu, 17 Mar 2022 18:53:21 -0400 Subject: [PATCH] work around patch for https://github.com/minetest-mods/i3/issues/61 --- mods/fl_hand/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/fl_hand/init.lua b/mods/fl_hand/init.lua index 60e3cf3..f7b870f 100644 --- a/mods/fl_hand/init.lua +++ b/mods/fl_hand/init.lua @@ -64,6 +64,10 @@ minetest.register_privilege("creative", { description = "creative mode", give_to_singleplayer = false, give_to_admin = false, + on_revoke = function(name, revoker_name) + --this is a hack to work around https://github.com/minetest-mods/i3/issues/61 + i3.set_tab(minetest.get_player_by_name(name), "inventory") + end }) if minetest.settings:get_bool("creative_mode") then