Skip to content

Commit

Permalink
Fix afkkick giving seconds left in decimal format
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Nov 3, 2024
1 parent 486cfe1 commit 556a2eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/other/afkkick/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ minetest.register_globalstep(function(dtime)
if players[playerName]["lastAction"] + MAX_INACTIVE_TIME - WARN_TIME < currGameTime then
minetest.chat_send_player(playerName, minetest.colorize("#FF8C00",
S("Warning, you have @1 seconds to move or be kicked",
tostring(players[playerName]["lastAction"] + MAX_INACTIVE_TIME - currGameTime + 1))))
tostring(math.floor(players[playerName]["lastAction"] + MAX_INACTIVE_TIME - currGameTime + 1)))))
end
end
end
Expand Down

0 comments on commit 556a2eb

Please sign in to comment.