Skip to content

Commit d648d89

Browse files
committed
fix
1 parent 3fb30c4 commit d648d89

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/net/krlite/splasher/Splasher.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ public static boolean shouldSplash() {
7272

7373
@Override
7474
public void onInitialize() {
75+
CONFIG.save();
76+
7577
boolean isBouncedLoaded = FabricLoader.getInstance().isModLoaded("bounced");
7678

7779
ScreenEvents.BEFORE_INIT.register((client, screen, scaledWidth, scaledHeight) -> {
@@ -103,7 +105,7 @@ public static boolean isMouseHovering(double width, double mouseX, double mouseY
103105
}
104106

105107
static boolean isMouseHovering(Node origin, Node mouse) {
106-
return new Rect(
108+
return CONFIG.enableSplashTexts && new Rect(
107109
origin.append(new Node(-width / 2, -height / 2)),
108110
origin.append(new Node(width / 2, height / 2))
109111
).rotate(origin, CONFIG.lefty ? 20 : -20).contains(mouse);

src/main/java/net/krlite/splasher/config/SplasherConfig.java

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public class SplasherConfig extends Pierced {
1717
public SplasherConfig() {
1818
super(SplasherConfig.class, file);
1919
load();
20-
save();
2120
}
2221

2322
public boolean enableSplashTexts = true;

0 commit comments

Comments
 (0)