Fix lint errors

This commit is contained in:
Cooldude2606
2026-06-26 15:02:08 +01:00
parent 9019be307c
commit 7be2f8d490
2 changed files with 6 additions and 1 deletions
@@ -43,10 +43,14 @@ local ignored_items = {
--- Saves your quickbar preset to the script-output folder
Commands.new("save-quickbar", "Saves your Quickbar preset items to file")
:add_aliases{ "save-toolbar" }
:add_flags{ "disabled" }
:register(function(player)
local filters = {}
error("2.1 changes to get_quick_bar_slot beak compatibility with 2.0; waiting for upstream")
-- Upstream may add method to compat, or change inventory sync to have a quickbar only mode
for i = 1, 100 do
--[[
local slot = player.get_quick_bar_slot(i)
-- Need to filter out blueprint and blueprint books because the slot is a LuaItemPrototype and does not contain a way to export blueprint data
if slot ~= nil then
@@ -55,6 +59,7 @@ Commands.new("save-quickbar", "Saves your Quickbar preset items to file")
filters[i] = slot.name
end
end
]]
end
if next(filters) then
@@ -233,7 +233,7 @@ end
local max_mining_radius = 0
for _, proto in pairs(prototypes.get_entity_filtered{ { filter = "type", type = "mining-drill" } }) do
if proto.mining_drill_radius then
max_mining_radius = math.max(proto.get_mining_drill_radius(max_quality), max_mining_radius)
max_mining_radius = math.max(assert(proto.get_mining_drill_radius(max_quality)), max_mining_radius)
end
end