mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 15:04:52 +09:00
on_player_armor_inventory_changed for the restored armor is raised at the end of the download's tick, after the inventory bonus of the armor's equipment applied, so the raise is removed there instead of in the next tick's on_tick. The raise is only made for armor with a grid, as the event needs the armor to be restored. A player leaving on the tick of a download no longer has the raise removed from the character first, which shrank the main inventory before the bonus applied and spilled the extra slots. The raise is taken off the uploaded inventory bonus instead. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>