mirror of
https://repo.or.cz/minetest_orienteering.git
synced 2025-01-10 14:47:29 +01:00
Use minetest.is_creative_enabled
This commit is contained in:
parent
00ee213ecf
commit
1e88160230
2
init.lua
2
init.lua
@ -243,7 +243,7 @@ if minetest.get_modpath("default") ~= nil then
|
|||||||
end
|
end
|
||||||
|
|
||||||
function orienteering.update_automapper(player)
|
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})
|
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
|
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})
|
player:hud_set_flags({minimap = true, minimap_radar = false})
|
||||||
|
Loading…
Reference in New Issue
Block a user