[Rseding91] [2.0.28] No event when equipment is removed by a bot

This subforum contains all the issues which we already resolved.
half a cat
Inserter
Inserter
Posts: 31
Joined: Sun Jul 16, 2023 4:03 pm
Contact:

[Rseding91] [2.0.28] No event when equipment is removed by a bot

Post by half a cat »

I believe that the on_equipment_removed event should be triggered whenever equipment is removed from an equipment grid. However, it is not triggered when a bot removes equipment from an equipment grid. As far as I can tell, no other event is triggered, either. This is a problem for mods that want to detect when equipment has changed.

The attached save has an example where a bot will remove equipment from a character entity's equipment grid, and no event will be triggered. The save is only to demonstrate the situation; it does not use any mods that handle events. The same problem happens with equipment grids in a tank or a locomotive.

Expected behavior:

When a bot removes equipment from an equipment grid, an on_equipment_removed event is created. The event is the same as if a player removes equipment.

Observed behavior:

No event is created.
Attachments
test-equipment.zip
(2.24 MiB) Downloaded 2 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14816
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding91] [2.0.28] No event when equipment is removed by a bot

Post by Rseding91 »

Thanks for the report. This is now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”