mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 15:24:52 +09:00
It's possible to set the .icons to an arbitrary key value mapping instead of an array and the game will still accept it. Convert the icons to an array if it's an object mapping to handle this case. Note that this doesn't preserve the order the game reads the keys in because JavaScript reorders numeric key indexes on objects differently to how the game orders them.