Skip to content

Commit

Permalink
calibration prompt suppressing
Browse files Browse the repository at this point in the history
  • Loading branch information
FalsePattern committed Nov 10, 2024
1 parent 701a66f commit b0beb26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ public class TriangulatorConfig {
@Config.DefaultBoolean(false)
@Config.RequiresMcRestart
public static boolean RENDER_HOOK_COMPAT_MODE;
@Config.Comment("Disable the calibration chat prompt")
@Config.LangKey("config.falsetweaks.triangulator.suppress_calibration")
@Config.DefaultBoolean(false)
public static boolean SUPPRESS_CALIBRATION;

@Config.Comment("The \"epsilon\" value for the block crack fix inside chunks. Set this a bit higher if you can\n" +
"still see light leaking between solid blocks in dark areas.\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
package com.falsepattern.falsetweaks.modules.triangulator.calibration;

import com.falsepattern.falsetweaks.config.ModuleConfig;
import com.falsepattern.falsetweaks.config.TriangulatorConfig;
import com.falsepattern.lib.config.ConfigurationManager;
import com.falsepattern.lib.text.FormattedText;
import lombok.AccessLevel;
Expand Down Expand Up @@ -84,6 +85,9 @@ private static String gpu() {
@SneakyThrows
@SubscribeEvent
public void onSinglePlayer(EntityJoinWorldEvent e) {
if (TriangulatorConfig.SUPPRESS_CALIBRATION)
return;

if (!(e.entity instanceof EntityPlayerSP)) {
return;
}
Expand Down

0 comments on commit b0beb26

Please sign in to comment.