Skip to content

Commit

Permalink
reduce supplier
Browse files Browse the repository at this point in the history
  • Loading branch information
yurisuika committed Oct 26, 2024
1 parent a9b3e4f commit 25fdd95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public abstract static class Pre {
/**
* Moves the {@code hotbar}, {@code health bar}, {@code armor bar}, {@code food bar}, {@code air bar},
* {@code mount health bar}, {@code mount jump bar}, {@code experience bar}, and {@code held item tooltip}
* if {@link Element.HOTBAR}.
* for {@link Element.HOTBAR}.
*/
@Inject(method = "renderHotbarAndDecorations", at = @At("HEAD"))
private void startMainHudTranslate(GuiGraphics guiGraphics, float partialTick, CallbackInfo ci) {
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/dev/yurisuika/raised/util/Pack.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ public static void checkResources() {

Minecraft.getInstance().getResourcePackRepository().openAllSelected().forEach(pack -> {
if (!pack.packId().contentEquals("raised")) {
pack.listResources(PackType.CLIENT_RESOURCES, "raised", "textures/gui/sprites/hud/hotbar_selection.png", (id, supplier) -> {
exists.set(true);
});
pack.listResources(PackType.CLIENT_RESOURCES, "raised", "textures/gui/sprites/hud/hotbar_selection.png", (id, supplier) -> exists.set(true));
}
});

Expand Down

0 comments on commit 25fdd95

Please sign in to comment.