[1.1.38] selection-tool items do not stack in input slot
Posted: Mon Aug 30, 2021 10:37 am
I have the following item in my mod:
I will mention that the only reason this is a `selection-tool` is that `mod-openable` doesn't work on any other item type.
This item is used in certain recipes. Five of them are needed at once. However, while this worked fine in 1.1.37, as of 1.1.38 they will no longer stack in assembling machines.
If this is intentional, I will need some other way of "opening" an item. In my particular case it's really just a way of accessing a special GUI for the item, so technically all I really need is some way of detecting a right-click on any item having this name, they aren't item-specific, so any pointers for a workaround would help too, but this does seem like a regression since it doesn't appear to be listed as an intentional change in the changelog.
Code: Select all
local scanneritem = {
type = "selection-tool",
name = name,
icon = graphics.."icons/"..name..".png",
icon_size = 64,
stack_size = 1,
subgroup = "logistics-observation",
order = "f["..name.."]",
open_sound = sounds.open_sound,
close_sound = sounds.close_sound,
selection_mode = {"nothing"},
selection_color = {a=0},
selection_cursor_box_type = "entity",
alt_selection_mode = {"nothing"},
alt_selection_color = {a=0},
alt_selection_cursor_box_type = "entity",
mouse_cursor = name,
flags = {"mod-openable"}
}
This item is used in certain recipes. Five of them are needed at once. However, while this worked fine in 1.1.37, as of 1.1.38 they will no longer stack in assembling machines.
If this is intentional, I will need some other way of "opening" an item. In my particular case it's really just a way of accessing a special GUI for the item, so technically all I really need is some way of detecting a right-click on any item having this name, they aren't item-specific, so any pointers for a workaround would help too, but this does seem like a regression since it doesn't appear to be listed as an intentional change in the changelog.