automelt doesn't need to disable itself

develop
Myk Taylor 2023-04-10 03:37:22 -07:00
parent 07c83d3bf3
commit 661ddbd256
No known key found for this signature in database
1 changed files with 0 additions and 14 deletions

@ -172,20 +172,6 @@ DFhackCExport command_result plugin_load_data(color_ostream &out)
return CR_OK;
}
DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_change_event event)
{
if (event == DFHack::SC_WORLD_UNLOADED)
{
if (is_enabled)
{
DEBUG(status, out).print("world unloaded; disabling %s\n", plugin_name);
is_enabled = false;
}
}
return CR_OK;
}
DFhackCExport command_result plugin_onupdate(color_ostream &out)
{
if (!Core::getInstance().isWorldLoaded())