Skip to content

Commit a4b9ec9

Browse files
committed
Format, bump version
1 parent 9426d44 commit a4b9ec9

3 files changed

Lines changed: 132 additions & 131 deletions

File tree

gradle-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ source: "https://github.com/tr7zw/ProcessedModTemplate/tree/master"
33
replacements:
44
name: "NotEnoughAnimations"
55
id: "notenoughanimations"
6-
version: "1.12.2"
6+
version: "1.12.3"
77
description: "Adding and improving animations in Third-Person."
88
homepageUrl: "https://modrinth.com/mod/not-enough-animations"
99
sourcesUrl: "https://github.com/tr7zw/NotEnoughAnimations"

src/main/java/dev/tr7zw/notenoughanimations/config/ConfigScreenProvider.java

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)