We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5afcc01 commit 7caad8dCopy full SHA for 7caad8d
common/src/main/java/dev/terminalmc/moremousetweaks/MoreMouseTweaks.java
@@ -49,7 +49,9 @@ public static void afterConfigSaved(Config config) {
49
}
50
51
public static void setInteractionManagerTickRate(Config.Options options) {
52
- if (Minecraft.getInstance().getSingleplayerServer() == null) {
+ @Nullable Minecraft mc = Minecraft.getInstance();
53
+ //noinspection ConstantValue
54
+ if (mc != null && mc.getSingleplayerServer() == null) {
55
InteractionManager.setTickRate(options.interactionIntervalMp);
56
} else {
57
InteractionManager.setTickRate(options.interactionIntervalSp);
0 commit comments