Skip to content
Snippets Groups Projects
Commit b0133336 authored by entuland's avatar entuland
Browse files

trivial refactoring

parent c7e288db
No related branches found
No related tags found
No related merge requests found
......@@ -588,8 +588,7 @@ local function toggle_memory_callback(itemstack, player, pointed_thing)
local playername = player and player:get_player_name() or ""
local key = "memory_" .. playername
local flag = storage:get_int(key) or 0
flag = flag + 1
if flag == 3 then flag = 0 end
flag = flag == 2 and 0 or flag + 1
flag = ({"off", "on", "auto"})[flag + 1]
local use_hud = true
flag_helper(playername, "memory", flag, "Rotation memory", use_hud)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment