Open RedRafe opened 5 days ago
I believe this is due to new prototype definition, from Wube's src:
{
type = "item",
name = "pipe",
icon = "__base__/graphics/icons/pipe.png",
subgroup = "energy-pipe-distribution",
order = "a[pipe]-a[pipe]",
inventory_move_sound = item_sounds.metal_small_inventory_move,
pick_sound = item_sounds.metal_small_inventory_pickup,
drop_sound = item_sounds.metal_small_inventory_move,
place_result = "pipe",
stack_size = 100,
weight = 5 * kg,
random_tint_color = item_tints.iron_rust
}
icon_size
now defaults to 64 but is not specified in prototype attributes. So maybe you'd want to fallback to that value if no icons
found and only icon
is specified without icon_size
.
Setting data.raw.item.pipe.icon_size = 64
before calling deadlock.add_stack('pipe', nil, 'deadlock-stacking-1', 64)
does indeed fix the issue.
Up to you
Hi, before the update to 2.0, this is how I was calling to the API:
But now I'm getting this error on load:
Can you have a loot at it maybe? Thanks