Skip to content

Commit 35dd2ef

Browse files
committed
naming
1 parent db8b6a9 commit 35dd2ef

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/main/java/carpet/logging/LoggerRegistry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class LoggerRegistry
5050
public static boolean __savestate;
5151
public static boolean __phantom;
5252
public static boolean __threadstone;
53-
public static boolean __instantfall;
53+
public static boolean __instantFall;
5454
public static boolean __playerCheckLight;
5555
public static boolean __ghostPlayer;
5656
public static boolean __portalCache;

src/main/java/carpet/logging/instantfall/InstantFallLogger.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
package carpet.logging.instantfall;
22

33
import carpet.logging.AbstractLogger;
4+
import carpet.logging.LoggerRegistry;
45
import carpet.utils.Messenger;
56
import net.minecraft.util.text.ITextComponent;
67
import net.minecraft.util.text.TextFormatting;
78

89
public class InstantFallLogger extends AbstractLogger
910
{
10-
public static final String NAME = "instantfall";
11+
public static final String NAME = "instantFall";
1112
private static final InstantFallLogger INSTANCE = new InstantFallLogger();
1213

1314
public InstantFallLogger()
@@ -22,6 +23,10 @@ public static InstantFallLogger getInstance()
2223

2324
public void onInstantFallFlagFlipped(boolean currentFlag)
2425
{
26+
if (!LoggerRegistry.__instantFall)
27+
{
28+
return;
29+
}
2530
this.log(() -> new ITextComponent[]{Messenger.formatting(
2631
advTr("flag_changed", "InstantFall flag changed to %s", Messenger.bool(currentFlag)),
2732
TextFormatting.LIGHT_PURPLE, TextFormatting.ITALIC

0 commit comments

Comments
 (0)