File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
common/src/main/java/dev/terminalmc/moremousetweaks Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -39,19 +39,18 @@ public static void afterConfigSaved(Config config) {
3939 @ Nullable Minecraft mc = Minecraft .getInstance ();
4040 Config .Options options = config .options ;
4141
42- setInteractionManagerTickRate (options );
43-
4442 //noinspection ConstantValue
45- if (mc != null && mc .getConnection () != null && mc .getConnection ().isAcceptingMessages ()) {
46- // Update item tags
47- updateItemTags (options );
43+ if (mc != null ) {
44+ setInteractionManagerTickRate (options );
45+ if (mc .getConnection () != null && mc .getConnection ().isAcceptingMessages ()) {
46+ // Update item tags
47+ updateItemTags (options );
48+ }
4849 }
4950 }
5051
5152 public static void setInteractionManagerTickRate (Config .Options options ) {
52- @ Nullable Minecraft mc = Minecraft .getInstance ();
53- //noinspection ConstantValue
54- if (mc != null && mc .getSingleplayerServer () == null ) {
53+ if (Minecraft .getInstance ().getSingleplayerServer () == null ) {
5554 InteractionManager .setTickRate (options .interactionIntervalMp );
5655 } else {
5756 InteractionManager .setTickRate (options .interactionIntervalSp );
You can’t perform that action at this time.
0 commit comments