#Many people said that what i was trying
1 messages · Page 1 of 1 (latest)
because that way cursor is empty and factorio doesnt lets you read contents of which slot was clicked
The way devs made those 2 evens feels wrong to me and is inconsistent.
On one side we have on_player_removed_equipment, it's fired once, contains amount of removed equipment and name of the equipment, sadly no equipment instance nor produced itemstack.
On the other side we have on_player_placed_equipment, it's fired once per equipment installed, it does provide the LuaEquipment but no itemstack that was used.
on_player_removed_equipment:
- count: int
- equipment: string
- itemstack: nil
Why not just make it fire per equipment removed, provide resulting itemstack and actual LuaEquipment?
on_player_placed_equipment:
- equipment: LuaEquipment
- itemstack: nil
This is mostly OK for me, it provide the LuaEquipment, it fires per equipment placed but this doesn't provide the itemstack that was used.
I wonder if what I need is even possible given that sometimes devs can't add requested features
I couldn't find a request for the on_player_placed_equipment or on_player_removed_equipment that would explain this strange behaviour.
You're free to go make a request for changing how those events work on the forums if you want to.
Nice