Skip to content

Commit 2913b23

Browse files
committed
Fix some minor nits
1 parent 6d76cf5 commit 2913b23

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

GitHub/MANUAL_NATIVES_INSTALL.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ How to install the battery library without having the mod do it on your behalf:
88
- You will want to download the file called `libbattery-jni-1.0.0+<arch>.<os>.<ext>`
99
- If you're not sure which one to use simply download all of them, redundant ones are ignored at runtime
1010
- Locate Dynamic FPS' cache directory in your Minecraft instance
11-
- This is currently `<instance>/.cache/dynamic_fps` for every mod loader
11+
- This is currently `<instance>/.cache/dynamic_fps/` for every mod loader
1212
- Drop the dynamic library into this folder
1313
- Start the game! The battery features should now be working

platforms/common/src/main/java/dynamic_fps/impl/config/option/BatteryIndicatorCondition.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ public enum BatteryIndicatorCondition {
2121
/**
2222
* Show battery indicator when the battery is at a critical level (<= 10%).
2323
*/
24-
CRITICAL(() -> {
25-
@Nullable Integer charge = BatteryTracker.charge();
26-
return DRAINING.isConditionMet() && charge != null && charge <= 10;
27-
}),
24+
CRITICAL(() -> DRAINING.isConditionMet() && BatteryTracker.charge() <= 10),
2825

2926
/**
3027
* Show battery indicator at all times.

0 commit comments

Comments
 (0)