Skip to content

Commit

Permalink
wip: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Feb 28, 2024
1 parent 6fd1b8d commit 682534e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ protected void renderLabels(GuiGraphics guiGraphics, int mouseX, int mouseY) {
poseStack.pushPose();
poseStack.translate(0, 0, 300);
guiGraphics.fill(58, 16, 144, 71, 0x99000000);
guiGraphics.drawCenteredString(font, I18n.get("gui.excompressum.autoSieve.noMesh"), 101, 43 - font.lineHeight / 2, 0xFFFFFFFF);
guiGraphics.drawCenteredString(font, I18n.get("gui.excompressum.auto_sieve.no_mesh"), 101, 43 - font.lineHeight / 2, 0xFFFFFFFF);
poseStack.popPose();
} else if (!blockEntity.isCorrectSieveMesh()) {
poseStack.pushPose();
poseStack.translate(0, 0, 300);
guiGraphics.fill(58, 16, 144, 71, 0x99000000);
guiGraphics.drawCenteredString(font, I18n.get("gui.excompressum.autoSieve.incorrectMesh"), 101, 43 - font.lineHeight / 2, 0xFFFFFFFF);
guiGraphics.drawCenteredString(font, I18n.get("gui.excompressum.auto_sieve.incorrect_mesh"), 101, 43 - font.lineHeight / 2, 0xFFFFFFFF);
poseStack.popPose();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
package net.blay09.mods.excompressum.menu;

import com.mojang.datafixers.util.Pair;
import net.minecraft.client.renderer.texture.TextureAtlas;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.Container;
import net.minecraft.world.inventory.Slot;
import org.jetbrains.annotations.Nullable;

public class AutoHammerUpgradeSlot extends Slot {

private final ResourceLocation iconAtlas = new ResourceLocation("minecraft", "excompressum_icons");
private final ResourceLocation noItemIconSprite;
private final Pair<ResourceLocation, ResourceLocation> noItemIcon;

public AutoHammerUpgradeSlot(Container container, int index, int xPosition, int yPosition, boolean isCompressed) {
super(container, index, xPosition, yPosition);
noItemIconSprite = new ResourceLocation("minecraft",
isCompressed ? "excompressum_icons/empty_compressed_hammer_slot" : "excompressum_icons/empty_hammer_slot");
noItemIcon = Pair.of(iconAtlas, noItemIconSprite);
noItemIcon = Pair.of(TextureAtlas.LOCATION_BLOCKS, noItemIconSprite);
}

@Nullable
Expand Down

0 comments on commit 682534e

Please sign in to comment.