fix simple compress

This commit is contained in:
Brevven 2022-05-24 19:19:19 -07:00
parent 04832f65fe
commit 79049f8917
4 changed files with 12 additions and 5 deletions

View file

@ -1,4 +1,9 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 1.0.9
Date: 2022-05-25
Features:
- Fix a breakage when used with simple compress mod.
---------------------------------------------------------------------------------------------------
Version: 1.0.8 Version: 1.0.8
Date: 2022-02-22 Date: 2022-02-22
Features: Features:

View file

@ -541,10 +541,10 @@ end
-- Set recipe icons -- Set recipe icons
function util.set_item_icons(item_name, icons) function util.set_item_icons(item_name, icons)
if data.raw.recipe[item_name] then if data.raw.item[item_name] then
data.raw.recipe[item_name].icons = icons data.raw.item[item_name].icons = icons
data.raw.recipe[item_name].icon = nil data.raw.item[item_name].icon = nil
data.raw.recipe[item_name].icon_size = nil data.raw.item[item_name].icon_size = nil
end end
end end

View file

@ -1,6 +1,6 @@
{ {
"name": "bztitanium", "name": "bztitanium",
"version": "1.0.8", "version": "1.0.9",
"factorio_version": "1.1", "factorio_version": "1.1",
"title": "Titanium", "title": "Titanium",
"author": "Brevven", "author": "Brevven",

View file

@ -1,3 +1,5 @@
local util = require("data-util");
if simpleCompress then if simpleCompress then
if simpleCompress.ores then if simpleCompress.ores then
simpleCompress.currentSubgroup = "intermediate-product" simpleCompress.currentSubgroup = "intermediate-product"