Skip to content
Permalink
Browse files

Fix misleading chat messages of /clearobjects (#10690)

  • Loading branch information
Wuzzy2 committed Mar 8, 2021
1 parent 176f586 commit c48bbfd067da51a41f2facccf3cc3ee7660807a5
Showing with 5 additions and 3 deletions.
  1. +5 −3 builtin/game/chat.lua
@@ -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."))

0 comments on commit c48bbfd

Please sign in to comment.