shpaass / yafc-ce

Powerful Factorio calculator/analyser that works with mods
GNU General Public License v3.0
40 stars 15 forks source link

Fix legacy production sheet saving and loading errors #165

Closed DaleStan closed 4 weeks ago

DaleStan commented 1 month ago

This fixes #159; I expected CanBeNull to be accurate, and in this case, it wasn't. I also made the reader more forgiving; now it'll continue to read the rest of the object even if it fails to read one of the non-constructor properties.

Saving with unexpected nulls is still blocked. If we want to allow that too, I can remove CanBeNull entirely; it was present but unused prior to 74293282.