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