@@ -54,7 +54,7 @@ namespace DFHack {
5454}
5555
5656static const string CONFIG_KEY = string(plugin_name) + " /config" ;
57- static const string CONFIG_KEY_2 = string(plugin_name) + " /config1 " ;
57+ static const string CONFIG_KEY_2 = string(plugin_name) + " /config_2 " ;
5858static PersistentDataItem config;
5959static PersistentDataItem config2;
6060
@@ -885,8 +885,6 @@ DFhackCExport command_result plugin_shutdown (color_ostream &out) {
885885 return CR_OK;
886886}
887887
888-
889-
890888DFhackCExport command_result plugin_load_site_data (color_ostream &out) {
891889 cycle_timestamp = 0 ;
892890 config = World::GetPersistentSiteData (CONFIG_KEY);
@@ -910,7 +908,6 @@ DFhackCExport command_result plugin_load_site_data (color_ostream &out) {
910908 config.set_bool (CONFIG_CONFISCATE, true );
911909 }
912910
913- config2 = World::GetPersistentSiteData (CONFIG_KEY_2);
914911 // transition existing saves to CONFIG_AUTOMATE_DYE=false
915912 if (config2.get_int (CONFIG_AUTOMATE_DYE) < 0 )
916913 {
@@ -922,9 +919,12 @@ DFhackCExport command_result plugin_load_site_data (color_ostream &out) {
922919 DEBUG (control,out).print (" loading persisted enabled state: %s\n " ,
923920 is_enabled ? " true" : " false" );
924921 tailor_instance->set_confiscate (config.get_bool (CONFIG_CONFISCATE));
925- tailor_instance->set_automate_dye (config2.get_bool (CONFIG_AUTOMATE_DYE));
926922 DEBUG (control,out).print (" loading persisted confiscation state: %s\n " ,
927923 tailor_instance->get_confiscate () ? " true" : " false" );
924+ tailor_instance->set_automate_dye (config2.get_bool (CONFIG_AUTOMATE_DYE));
925+ DEBUG (control, out).print (" loading persisted dye automation state: %s\n " ,
926+ tailor_instance->get_automate_dye () ? " true" : " false" );
927+
928928 tailor_instance->sync_material_order ();
929929
930930 return CR_OK;
0 commit comments