mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-12 23:54:53 +09:00
Perfomance fix for adding to table
This commit is contained in:
1 parent
91f88b61e9
commit
af07b76d98
1 file changed
+1
-1
@@ -35,7 +35,7 @@ Commands.new_command('save-quickbar','Saves your Quickbar preset items to file')
|
||||
for i=1, 100 do
|
||||
local slot = player.get_quick_bar_slot(i)
|
||||
if slot ~= nil then
|
||||
table.insert(quickbar_names, i, slot.name)
|
||||
quickbar_names[i] = slot.name
|
||||
end
|
||||
end
|
||||
game.write_file("quickbar_preset.txt", player.name .. " = " .. serpent.line(quickbar_names) .. "\n", true)
|
||||
|
||||
Reference in new issue
Block a user