mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-15 00:24:52 +09:00
.
This commit is contained in:
1 parent
deb1e71dd7
commit
fa81a744cf
2 files changed
+4
No files matched your search
@@ -628,6 +628,7 @@ local function handle_output_interfaces()
|
||||
local quality = filter.value and filter.value.quality
|
||||
if name and allowed_items[name] then
|
||||
local quality_level = quality_name_to_level[quality]
|
||||
---@diagnostic disable-next-line: undefined-field
|
||||
local wanted = min(assert(filter.min) - inventory.get_item_count(name), prop.storage.items[name][quality_level])
|
||||
if wanted > 0 and inventory.can_insert{ name = name, count = wanted, quality = quality } then
|
||||
local removed = Vlayer.remove_item(s_index, name, wanted, quality_level)
|
||||
|
||||
@@ -259,6 +259,7 @@ function Elements.stats_table.refresh_online()
|
||||
if element then
|
||||
local surface_name = element.items[element.selected_index]
|
||||
if surface_name then
|
||||
---@diagnostic disable-next-line: undefined-field
|
||||
surface = game.surfaces[surface_name].index
|
||||
end
|
||||
end
|
||||
@@ -478,6 +479,7 @@ function Elements.controls.get_selected_interface(controls)
|
||||
if element then
|
||||
local surface_name = element.items[element.selected_index]
|
||||
if surface_name then
|
||||
---@diagnostic disable-next-line: undefined-field
|
||||
surface = game.surfaces[surface_name].index
|
||||
end
|
||||
end
|
||||
@@ -495,6 +497,7 @@ function Elements.controls.refresh_interfaces(controls)
|
||||
if element then
|
||||
local surface_name = element.items[element.selected_index]
|
||||
if surface_name then
|
||||
---@diagnostic disable-next-line: undefined-field
|
||||
surface = game.surfaces[surface_name].index
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user