mirror of
https://github.com/EliasFleckenstein03/playerlist.git
synced 2025-03-24 18:22:30 +01:00
Make the mod work unconfigured and remove debug message
This commit is contained in:
6
init.lua
6
init.lua
@ -2,8 +2,10 @@ playerlist = {
|
||||
huds = {}
|
||||
}
|
||||
|
||||
local playerlist_key = minetest.settings:get("playerlist_key") or "sneak"
|
||||
print(playerlist_key)
|
||||
local playerlist_key = minetest.settings:get("playerlist_key")
|
||||
if playerlist_key == "" then
|
||||
playerlist_key = "sneak"
|
||||
end
|
||||
|
||||
function playerlist.iterator()
|
||||
return ipairs(minetest.get_connected_players())
|
||||
|
Reference in New Issue
Block a user