mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-27 00:37:14 +09:00
Convert prototype icons to array during export
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.
This commit is contained in:
1 parent
8865509011
commit
e8d9eb6916
2 files changed
+15
-1
No files matched your search
@@ -13,6 +13,7 @@
|
||||
- Fixed Research Sync applying progress of a previous techology level to the level on the controller when it's the active research during instance startup.
|
||||
- Fixed data export with a mod using shorthand notation for the default value of a color-setting causing the ModPack data to be set to invalid data.
|
||||
- Fixed per user per instance player stats not being deleted when the instance it's for is deleted.
|
||||
- Fixed mods setting the item prototype icons property to an object mapping instead of an array breaking the data export.
|
||||
|
||||
|
||||
## Version 2.0.0-alpha.16
|
||||
|
||||
Reference in new issue
Block a user