question on properties of LuaItemPrototype: flags = {"not-stackable"} and stack_size
Posted: Fri Apr 22, 2022 7:26 pm
Hello there,
my mod adds a custom item with
Now another mod tries to change stack_size - and the game won't load any more, complaining that the stack_size needs to be 1 if 'not-stackable' is set.
Is there a way to prevent changes to the stack_size value?
Should the other mod take care of the flag and this is their bug?
Or am I wrong in using the flag at all?
Best regards
Daeruun
my mod adds a custom item with
Code: Select all
data:extend(
{
{
type = "item",
name = "LRM-dummy-item",
icon = "__core__/graphics/cancel.png",
icon_size = 64,
stack_size = 1,
flags = { "hidden", "not-stackable" },
subgroup = "other",
}
}
Is there a way to prevent changes to the stack_size value?
Should the other mod take care of the flag and this is their bug?
Or am I wrong in using the flag at all?
Best regards
Daeruun