k2 beta comp

This commit is contained in:
Brevven 2021-11-05 22:33:37 -07:00
parent ee1c272914
commit 9a7def9500
4 changed files with 15 additions and 2 deletions

View file

@ -1,4 +1,9 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 0.6.0
Date: 2021-11-06
Changes:
- K2: Compatible with beta
---------------------------------------------------------------------------------------------------
Version: 0.5.9 Version: 0.5.9
Date: 2021-10-11 Date: 2021-10-11
Fixes: Fixes:

View file

@ -22,6 +22,13 @@ function util.get_stack_size(default)
return default return default
end end
function util.k2assets()
if mods["Krastorio2Assets"] then
return "__Krastorio2Assets__"
end
return "__Krastorio2__/graphics"
end
-- check if a table contains a sought value -- check if a table contains a sought value
function util.contains(table, sought) function util.contains(table, sought)
for i, value in pairs(table) do for i, value in pairs(table) do

View file

@ -1,6 +1,6 @@
{ {
"name": "bzlead", "name": "bzlead",
"version": "0.5.9", "version": "0.6.0",
"factorio_version": "1.1", "factorio_version": "1.1",
"title": "Lead", "title": "Lead",
"author": "Brevven", "author": "Brevven",

View file

@ -1,5 +1,6 @@
-- Matter recipes for Krastorio2 -- Matter recipes for Krastorio2
if mods["Krastorio2"] then if mods["Krastorio2"] then
local util = require("__bzlead__.data-util");
local matter = require("__Krastorio2__/lib/public/data-stages/matter-util") local matter = require("__Krastorio2__/lib/public/data-stages/matter-util")
data:extend( data:extend(
@ -10,7 +11,7 @@ data:extend(
icons = icons =
{ {
{ {
icon = "__Krastorio2__/graphics/technologies/matter-stone.png", icon = util.k2assets().."/technologies/matter-stone.png",
icon_size = 256, icon_size = 256,
}, },
{ {