Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix misleading chat messages of /clearobjects (#10690)
  • Loading branch information
Wuzzy2 committed Mar 8, 2021
1 parent 176f586 commit c48bbfd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions builtin/game/chat.lua
Expand Up @@ -1075,10 +1075,12 @@ core.register_chatcommand("clearobjects", {
return false, S("Invalid usage, see /help clearobjects.")
end

core.log("action", name .. " clears all objects ("
core.log("action", name .. " clears objects ("
.. options.mode .. " mode).")
core.chat_send_all(S("Clearing all objects. This may take a long time. "
.. "You may experience a timeout. (by @1)", name))
if options.mode == "full" then
core.chat_send_all(S("Clearing all objects. This may take a long time. "
.. "You may experience a timeout. (by @1)", name))
end
core.clear_objects(options)
core.log("action", "Object clearing done.")
core.chat_send_all("*** "..S("Cleared all objects."))
Expand Down

0 comments on commit c48bbfd

Please sign in to comment.