Skip to content

Commit

Permalink
Fix NPEs, improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
makamys committed Mar 27, 2024
1 parent d6c9e97 commit f78d3d5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/makamys/neodymium/Compat.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public static void init() {

IS_HODGEPODGE_SPEEDUP_ANIMATIONS_ENABLED = checkIfHodgepodgeSpeedupAnimationsIsEnabled();
IS_ANGELICA_SPEEDUP_ANIMATIONS_ENABLED = checkIfAngelicaSpeedupAnimationsIsEnabled();
LOGGER.debug("speedupAnimations compat fix will " + (isSpeedupAnimationsEnabled() ? "" : "not ") + "be enabled");
}

public static boolean enableVanillaChunkMeshes() {
Expand Down Expand Up @@ -88,9 +89,9 @@ private static boolean checkIfHodgepodgeSpeedupAnimationsIsEnabled() {
result = false;
}
} else {
LOGGER.debug("Hodgepodge is missing, treating speedupAnimations as false");
LOGGER.debug("Hodgepodge is missing, treating its speedupAnimations as false");
result = false;
}
LOGGER.debug("Compat fix will " + (result ? "" : "not ") + "be enabled");
return result;
}

Expand All @@ -111,9 +112,9 @@ private static boolean checkIfAngelicaSpeedupAnimationsIsEnabled() {
result = false;
}
} else {
LOGGER.debug("Angelica is missing, treating speedupAnimations as false");
LOGGER.debug("Angelica is missing, treating its speedupAnimations as false");
result = false;
}
LOGGER.debug("Compat fix will " + (result ? "" : "not ") + "be enabled");
return result;
}

Expand Down

0 comments on commit f78d3d5

Please sign in to comment.