mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00:00
Faster insertion into table
This commit is contained in:
parent
75db0543f3
commit
24e8b0ac1e
13 changed files with 48 additions and 45 deletions
|
@ -46,7 +46,7 @@ local function add_tab(self,tab)
|
|||
tabdata = {},
|
||||
}
|
||||
|
||||
table.insert(self.tablist,newtab)
|
||||
self.tablist[#self.tablist + 1] = newtab
|
||||
|
||||
if self.last_tab_index == #self.tablist then
|
||||
self.current_tab = tab.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue