mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-27 03:15:29 +01:00
Faster insertion into table
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user