We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5045a17 commit ca7a89eCopy full SHA for ca7a89e
common/src/main/java/dev/terminalmc/clientsort/client/gui/screen/edit/EditorScreen.java
@@ -471,7 +471,12 @@ public void onClose() {
471
* Saves any altered values, then calls {@link EditorScreen#onClose}.
472
*/
473
public void saveAndClose() {
474
- buttons.getFirst().savePolicy(buttons.getFirst().offset, ignoredSlots);
+ buttons.getFirst().savePolicy(
475
+ buttons.getFirst().offset.equals(options().layoutOffset)
476
+ ? null
477
+ : buttons.getFirst().offset,
478
+ ignoredSlots
479
+ );
480
Config.save();
481
onClose();
482
}
0 commit comments