mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +01:00
Fix misleading chat messages of /clearobjects (#10690)
This commit is contained in:
parent
176f5866cb
commit
c48bbfd067
@ -1075,10 +1075,12 @@ core.register_chatcommand("clearobjects", {
|
|||||||
return false, S("Invalid usage, see /help clearobjects.")
|
return false, S("Invalid usage, see /help clearobjects.")
|
||||||
end
|
end
|
||||||
|
|
||||||
core.log("action", name .. " clears all objects ("
|
core.log("action", name .. " clears objects ("
|
||||||
.. options.mode .. " mode).")
|
.. options.mode .. " mode).")
|
||||||
core.chat_send_all(S("Clearing all objects. This may take a long time. "
|
if options.mode == "full" then
|
||||||
.. "You may experience a timeout. (by @1)", name))
|
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.clear_objects(options)
|
||||||
core.log("action", "Object clearing done.")
|
core.log("action", "Object clearing done.")
|
||||||
core.chat_send_all("*** "..S("Cleared all objects."))
|
core.chat_send_all("*** "..S("Cleared all objects."))
|
||||||
|
Loading…
Reference in New Issue
Block a user