From 69ba983410e3b896f29fcb08593a3f12a394c0c4 Mon Sep 17 00:00:00 2001 From: cora Date: Fri, 27 Nov 2020 22:59:50 +0100 Subject: [PATCH] nlist: some cleanup --- clientmods/nlist/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clientmods/nlist/init.lua b/clientmods/nlist/init.lua index 54bec8f21..f873aa16f 100644 --- a/clientmods/nlist/init.lua +++ b/clientmods/nlist/init.lua @@ -27,10 +27,12 @@ end) function nlist.add(list,node) if node == "" then mode=1 return end local tb=nlist.get(list) + local str='' for k,v in pairs(tb) do + str=str..','..v if v == node then return end end - local str=str..','..node + str=str..','..node storage:set_string(list,str) end