Skip to content

Commit 224d29d

Browse files
committed
Reversing o-W-g autogems default setting
Starter pack users have complained that it's too big a change from vanilla, particularly given that strange moods need rough gems.
1 parent e160fec commit 224d29d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/autogems.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_chan
284284
if (enabled && World::isFortressMode()) {
285285
// Determine whether auto gem cutting has been disabled for this fort.
286286
auto config = World::GetPersistentData(CONFIG_KEY);
287-
running = !(config.isValid() && config.ival(0));
287+
running = config.isValid() && !config.ival(0);
288288
last_frame_count = world->frame_counter;
289289
}
290290
} else if (event == DFHack::SC_MAP_UNLOADED) {
@@ -302,9 +302,9 @@ DFhackCExport command_result plugin_enable(color_ostream& out, bool enable) {
302302
}
303303

304304
enabled = enable;
305-
running = enabled && World::isFortressMode();
306305
}
307306

307+
running = enabled && World::isFortressMode();
308308
return CR_OK;
309309
}
310310

0 commit comments

Comments
 (0)