Skip to content

Commit

Permalink
Merge pull request #234 from ILLISIS/v2.0.12
Browse files Browse the repository at this point in the history
v2.0.12
  • Loading branch information
ILLISIS authored Nov 13, 2024
2 parents 2ccb262 + 3c03dbf commit da27fd9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 2.0.12
Date: ????
Bugfixes:
- Fixed a crash when performing a quality upgrade on an entity with a mismatching item name.
---------------------------------------------------------------------------------------------------
Version: 2.0.11
Date: 2024-11-10
Changes:
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Constructron-Continued",
"version": "2.0.11",
"version": "2.0.12",
"title": "Constructron-Continued",
"author": "ILLISIS",
"homepage": "https://github.com/ILLISIS/Constructron-continued/",
Expand Down
5 changes: 2 additions & 3 deletions script/entity_processor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -584,13 +584,12 @@ entity_proc.upgrade = function(entity)
---@cast quality -nil
local target_quality_level = quality.name
local current_quality_level = entity.quality.name
local old_entity_name = entity.name
local items_to_place_cache = storage.items_to_place_cache[target_entity.name]
local item_name = items_to_place_cache.item
required_items[item_name] = required_items[item_name] or {}
required_items[item_name][target_quality_level] = (required_items[item_name][target_quality_level] or 0) + items_to_place_cache.count
trash_items[old_entity_name] = trash_items[old_entity_name] or {}
trash_items[old_entity_name][current_quality_level] = (trash_items[old_entity_name][current_quality_level] or 0) + 1
trash_items[item_name] = trash_items[item_name] or {}
trash_items[item_name][current_quality_level] = (trash_items[item_name][current_quality_level] or 0) + 1
return required_items, trash_items
end

Expand Down

0 comments on commit da27fd9

Please sign in to comment.