Fix bug with CSM restrictions
This commit is contained in:
parent
25a3336a56
commit
93caba075c
10
init.lua
10
init.lua
|
@ -124,10 +124,12 @@ chat_channels.get_channel_users = function(c)
|
|||
if not connected_players[name] then
|
||||
local empty = true
|
||||
local visible_players = minetest.get_player_names()
|
||||
for _, player in ipairs(visible_players) do
|
||||
if player == name then
|
||||
empty = false
|
||||
break
|
||||
if visible_players then
|
||||
for _, player in ipairs(visible_players) do
|
||||
if player == name then
|
||||
empty = false
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
if empty then return {} end
|
||||
|
|
Loading…
Reference in New Issue