Skip to content

Commit 5c4ef92

Browse files
committed
Fix toast texture locations not resolving
1 parent 5cf3679 commit 5c4ef92

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

platforms/common/src/main/java/dynamic_fps/impl/DynamicFPSMod.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ private static void showNotification(String titleTranslationKey, String iconPath
211211
}
212212

213213
Component title = localized("toast", titleTranslationKey);
214-
ResourceLocation icon = ResourceLocations.of("dynamic_fps", "textures/battery/toast/" + iconPath);
214+
ResourceLocation icon = ResourceLocations.of("dynamic_fps", "textures/battery/toast/" + iconPath + ".png");
215215

216216
BatteryToast.queueToast(title, icon);
217217
}

platforms/common/src/main/java/dynamic_fps/impl/feature/battery/BatteryToast.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public class BatteryToast implements Toast {
2323

2424
private static BatteryToast queuedToast;
2525

26-
private static final ResourceLocation MOD_ICON = ResourceLocations.of("dynamic_fps", "textures/battery/toast/background_icon");
27-
private static final ResourceLocation BACKGROUND_IMAGE = ResourceLocations.of("dynamic_fps", "textures/battery/toast/background");
26+
private static final ResourceLocation MOD_ICON = ResourceLocations.of("dynamic_fps", "textures/battery/toast/background_icon.png");
27+
private static final ResourceLocation BACKGROUND_IMAGE = ResourceLocations.of("dynamic_fps", "textures/battery/toast/background.png");
2828

2929
private BatteryToast(Component title, ResourceLocation icon) {
3030
this.title = title;

0 commit comments

Comments
 (0)