disable chat spamming

This commit is contained in:
Gundul 2021-05-24 07:50:56 +02:00
parent 1919e32e9c
commit bc2f245d6f

View File

@ -78,7 +78,7 @@ minetest.register_chatcommand("wl_lb", {
params = "",
description = "list biomes",
privs = {interact = true},
func = function()
func = function(name)
local biom = water_life.get_biomes()
@ -86,7 +86,7 @@ minetest.register_chatcommand("wl_lb", {
if not biom then return end
for i=1,#biom,1 do
minetest.chat_send_all(dump(i)..") "..dump(biom[i]))
minetest.chat_send_player(name, dump(i)..") "..dump(biom[i]))
end