From 1e881602301fc2e75640f6a6ea5f3ed511dc04d4 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 7 Nov 2020 00:25:38 +0100 Subject: [PATCH] Use minetest.is_creative_enabled --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index f96a553..47cc28a 100644 --- a/init.lua +++ b/init.lua @@ -243,7 +243,7 @@ if minetest.get_modpath("default") ~= nil then end function orienteering.update_automapper(player) - if orienteering.tool_active(player, "orienteering:automapper") or orienteering.tool_active(player, "orienteering:quadcorder") or minetest.settings:get_bool("creative_mode") then + if orienteering.tool_active(player, "orienteering:automapper") or orienteering.tool_active(player, "orienteering:quadcorder") or minetest.is_creative_enabled(player:get_player_name()) then player:hud_set_flags({minimap = true, minimap_radar = true}) elseif ((not mod_map) and orienteering.tool_active(player, "orienteering:map")) or ((mod_map) and orienteering.tool_active(player, "map:mapping_kit")) then player:hud_set_flags({minimap = true, minimap_radar = false})