1. Register the following custom input:
Code: Select all
{
type = "custom-input",
name = "rb-open-selected",
key_sequence = "ALT + mouse-button-1",
include_selected_prototype = true,
}
Code: Select all
/c script.on_event('rb-open-selected', function(e)
local p = e.selected_prototype
if p then
game.print{'', e.tick, ' ', p.base_type, '.', p.derived_type, '.', p.name}
else
game.print{'', e.tick, ' nothing'}
end
end)
Observed:
The "nothing" message.
Expected:
A message with fluid type and name.
This works correctly for item slots, the discrepancy is quite unexpected.
Honktown has also confirmed that the bug exists for the mining fluid.