mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix misleading chat messages of /clearobjects (#10690)
This commit is contained in:
parent
176f5866cb
commit
c48bbfd067
1 changed files with 5 additions and 3 deletions
|
@ -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).")
|
||||
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."))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue