Skip to content

Commit

Permalink
fix: Fix client class load in auto hammer upgrade slot
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Aug 13, 2024
1 parent bb2bd9a commit d3e5b17
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
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.InventoryMenu;
import net.minecraft.world.inventory.Slot;
import org.jetbrains.annotations.Nullable;

Expand All @@ -16,7 +16,7 @@ public AutoHammerUpgradeSlot(Container container, int index, int xPosition, int
super(container, index, xPosition, yPosition);
noItemIconSprite = new ResourceLocation("minecraft",
isCompressed ? "excompressum_icons/empty_compressed_hammer_slot" : "excompressum_icons/empty_hammer_slot");
noItemIcon = Pair.of(TextureAtlas.LOCATION_BLOCKS, noItemIconSprite);
noItemIcon = Pair.of(InventoryMenu.BLOCK_ATLAS, noItemIconSprite);
}

@Nullable
Expand Down

0 comments on commit d3e5b17

Please sign in to comment.