Skip to content

Commit

Permalink
Fix toast texture locations not resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
LostLuma committed Oct 27, 2024
1 parent 5cf3679 commit 5c4ef92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ private static void showNotification(String titleTranslationKey, String iconPath
}

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

BatteryToast.queueToast(title, icon);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public class BatteryToast implements Toast {

private static BatteryToast queuedToast;

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

private BatteryToast(Component title, ResourceLocation icon) {
this.title = title;
Expand Down

0 comments on commit 5c4ef92

Please sign in to comment.