mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-13 16:14:52 +09:00
unalloc
This commit is contained in:
1 parent
828e2e5951
commit
e6d898dd95
1 file changed
+2
-2
@@ -380,6 +380,8 @@ function Vlayer.insert_item(s_index, name, count, quality_level)
|
||||
local storage = vd.storage
|
||||
if not storage.items[name] then storage.items[name] = {} end
|
||||
if not storage.items[name][quality_level] then storage.items[name][quality_level] = 0 end
|
||||
if not storage.unallocated[name] then storage.unallocated[name] = {} end
|
||||
if not storage.unallocated[name][quality_level] then storage.unallocated[name][quality_level] = 0 end
|
||||
storage.items[name][quality_level] = storage.items[name][quality_level] + count
|
||||
|
||||
if config.unlimited_surface_area or item.required_area == 0 then
|
||||
@@ -395,8 +397,6 @@ function Vlayer.insert_item(s_index, name, count, quality_level)
|
||||
end
|
||||
|
||||
local unallocated = count - allocated
|
||||
if not storage.unallocated[name] then storage.unallocated[name] = {} end
|
||||
if not storage.unallocated[name][quality_level] then storage.unallocated[name][quality_level] = 0 end
|
||||
storage.unallocated[name][quality_level] = storage.unallocated[name][quality_level] + unallocated
|
||||
count_unallocated_production(s_index, name, unallocated, quality_level)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user