File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
enigma-swing/src/main/java/org/quiltmc/enigma/gui Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ public void processBooleans(TrackedValue.Builder<ValueMap<Boolean>> builder) {
50
50
}
51
51
52
52
public static void updateVineflowerValues (Map <String , Object > options ) {
53
+ Config .decompiler ().vineflower .stringValues .value ().clear ();
54
+ Config .decompiler ().vineflower .intValues .value ().clear ();
55
+ Config .decompiler ().vineflower .booleanValues .value ().clear ();
56
+
53
57
for (Map .Entry <String , Object > entry : options .entrySet ()) {
54
58
if (entry .getValue () instanceof String s ) {
55
59
Config .decompiler ().vineflower .stringValues .value ().put (entry .getKey (), s );
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ private void save() {
136
136
VineflowerPreferences .OPTIONS .clear ();
137
137
VineflowerPreferences .OPTIONS .putAll (this .options );
138
138
139
- DecompilerConfig .updateVineflowerValues (VineflowerPreferences .OPTIONS );
139
+ DecompilerConfig .updateVineflowerValues (new HashMap <>( VineflowerPreferences .OPTIONS ) );
140
140
this .dispose ();
141
141
}
142
142
}
You can’t perform that action at this time.
0 commit comments