Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
Tictim committed Dec 18, 2023
1 parent 31c49e4 commit cf9ecd6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,23 +154,23 @@ public void initUI(Consumer<Widget> widgetGroup) {
}).setMaxLength(64));
widgetGroup.accept(new ForcedInitialSyncImageCycleButtonWidget(130, 38, 18, 18,
GuiTextures.ORE_FILTER_BUTTON_CASE_SENSITIVE, () -> this.caseSensitive, caseSensitive -> {
if (this.caseSensitive == caseSensitive) return;
this.caseSensitive = caseSensitive;
markDirty();
recompile(compileCallback);
}).setTooltipHoverString(
i -> "cover.ore_dictionary_filter.button.case_sensitive." + (i == 0 ? "disabled" : "enabled")));
if (this.caseSensitive == caseSensitive) return;
this.caseSensitive = caseSensitive;
markDirty();
recompile(compileCallback);
}).setTooltipHoverString(
i -> "cover.ore_dictionary_filter.button.case_sensitive." + (i == 0 ? "disabled" : "enabled")));
widgetGroup.accept(new ForcedInitialSyncImageCycleButtonWidget(148, 38, 18, 18,
GuiTextures.ORE_FILTER_BUTTON_MATCH_ALL, () -> this.matchAll, matchAll -> {
if (this.matchAll == matchAll) return;
this.matchAll = matchAll;
markDirty();
clearCache();
for (ItemOreFilterTestSlot slot : testSlot) {
slot.setMatchAll(matchAll);
}
}).setTooltipHoverString(
i -> "cover.ore_dictionary_filter.button.match_all." + (i == 0 ? "disabled" : "enabled")));
if (this.matchAll == matchAll) return;
this.matchAll = matchAll;
markDirty();
clearCache();
for (ItemOreFilterTestSlot slot : testSlot) {
slot.setMatchAll(matchAll);
}
}).setTooltipHoverString(
i -> "cover.ore_dictionary_filter.button.match_all." + (i == 0 ? "disabled" : "enabled")));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ private OreGlobNode or() {
// Eat through OR tokens as much as we can, to prevent scenario where
// a disgusting C like lang users type || and complain their filter is broken
// noinspection StatementWithEmptyBody
while (advanceIf(OR)) ;
while (advanceIf(OR));
nodes.add(and());
} while (advanceIf(OR));
return OreGlobNodes.or(nodes);
Expand All @@ -227,7 +227,7 @@ private OreGlobNode and() {
// Eat through AND tokens as much as we can, to prevent scenario where
// a disgusting C like lang users type && and complain their filter is broken
// noinspection StatementWithEmptyBody
while (advanceIf(AND)) ;
while (advanceIf(AND));
nodes.add(xor());
} while (advanceIf(AND));
return OreGlobNodes.and(nodes);
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/gregtech/core/CoreModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@
import static gregtech.api.GregTechAPI.*;

@GregTechModule(
moduleID = GregTechModules.MODULE_CORE,
containerID = GTValues.MODID,
name = "GregTech Core",
description = "Core GregTech content. Disabling this disables the entire mod and all its addons.",
coreModule = true)
moduleID = GregTechModules.MODULE_CORE,
containerID = GTValues.MODID,
name = "GregTech Core",
description = "Core GregTech content. Disabling this disables the entire mod and all its addons.",
coreModule = true)
public class CoreModule implements IGregTechModule {

public static final Logger logger = LogManager.getLogger("GregTech Core");
Expand Down

0 comments on commit cf9ecd6

Please sign in to comment.