@@ -193,19 +193,19 @@ public CustomConfigScreen(Screen previous) {
193193 wTabPanel .add (optionList , b -> b .title (ComponentProvider .translatable ("text.nea.tab.settings" ))
194194 .icon (new ItemIcon (Items .FILLED_MAP )));
195195
196-
197196 {
198- var itemTab = createItemTab (key -> NEABaseMod .config .holdingItems .contains (getResourceString (key .getKey ())), (b , i ) -> {
199- String key = getResourceString (i .getKey ());
200- if (b ) {
201- NEABaseMod .config .holdingItems .add (key );
202- NEAnimationsLoader .INSTANCE .animationProvider .refreshEnabledAnimations ();
203- } else {
204- NEABaseMod .config .holdingItems .remove (key );
205- NEAnimationsLoader .INSTANCE .animationProvider .refreshEnabledAnimations ();
206- }
207- NEAnimationsLoader .INSTANCE .writeConfig ();
208- });
197+ var itemTab = createItemTab (
198+ key -> NEABaseMod .config .holdingItems .contains (getResourceString (key .getKey ())), (b , i ) -> {
199+ String key = getResourceString (i .getKey ());
200+ if (b ) {
201+ NEABaseMod .config .holdingItems .add (key );
202+ NEAnimationsLoader .INSTANCE .animationProvider .refreshEnabledAnimations ();
203+ } else {
204+ NEABaseMod .config .holdingItems .remove (key );
205+ NEAnimationsLoader .INSTANCE .animationProvider .refreshEnabledAnimations ();
206+ }
207+ NEAnimationsLoader .INSTANCE .writeConfig ();
208+ });
209209 wTabPanel .add (itemTab , b -> b .title (ComponentProvider .translatable ("text.nea.tab.holdup" ))
210210 .icon (new ItemIcon (Items .TORCH )));
211211 wTabPanel .layout ();
@@ -215,17 +215,18 @@ public CustomConfigScreen(Screen previous) {
215215 //? if >= 1.21.11 {
216216 {
217217 // Lantern list
218- var lanternTab = createItemTab (key -> NEABaseMod .config .lanternItems .contains (getResourceString (key .getKey ())), (b , i ) -> {
219- String key = getResourceString (i .getKey ());
220- if (b ) {
221- NEABaseMod .config .lanternItems .add (key );
222- NEAnimationsLoader .INSTANCE .animationProvider .refreshEnabledAnimations ();
223- } else {
224- NEABaseMod .config .lanternItems .remove (key );
225- NEAnimationsLoader .INSTANCE .animationProvider .refreshEnabledAnimations ();
226- }
227- NEAnimationsLoader .INSTANCE .writeConfig ();
228- });
218+ var lanternTab = createItemTab (
219+ key -> NEABaseMod .config .lanternItems .contains (getResourceString (key .getKey ())), (b , i ) -> {
220+ String key = getResourceString (i .getKey ());
221+ if (b ) {
222+ NEABaseMod .config .lanternItems .add (key );
223+ NEAnimationsLoader .INSTANCE .animationProvider .refreshEnabledAnimations ();
224+ } else {
225+ NEABaseMod .config .lanternItems .remove (key );
226+ NEAnimationsLoader .INSTANCE .animationProvider .refreshEnabledAnimations ();
227+ }
228+ NEAnimationsLoader .INSTANCE .writeConfig ();
229+ });
229230 wTabPanel .add (lanternTab , b -> b .title (ComponentProvider .translatable ("text.nea.tab.lantern" ))
230231 .icon (new ItemIcon (Items .LANTERN )));
231232 wTabPanel .layout ();
0 commit comments