neitsa / PrepareLanding

PrepareLanding: a Rimworld Mod
MIT License
20 stars 9 forks source link

Preset: mismatch in "Animal Can Graze" preset load / save. #24

Closed neitsa closed 7 years ago

neitsa commented 7 years ago

In LoadPreset

_gameData.UserData.ChosenAnimalsCanGrazeNowState = LoadThreeState(xTemperature, "AnimalsCanGrazeNow")

Note the root element as xTemperature

In SavePreset

SaveThreeState(xTerrainFilters, "AnimalsCanGrazeNow", _gameData.UserData.ChosenAnimalsCanGrazeNowState);

Note the root element as xTerrainFilters

So, the load and save code uses two different root elements, which means this preset can not be loaded properly....

TODO: choose the same root element for both of them!