Skip to content

Commit acbdf98

Browse files
committed
ensure renderHotbarItem hook is always triggered (seems to fix #31)
(cherry picked from commit 1ec7918)
1 parent 1aaecf5 commit acbdf98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/blazingtwist/itemcounts/mixin/InGameHudMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ private void renderItemAt(DrawContext context, ItemStack item, int x, int y, flo
156156
"Lnet/minecraft/entity/player/PlayerEntity;" +
157157
"Lnet/minecraft/item/ItemStack;" +
158158
"I" +
159-
")V", at = @At("TAIL"))
159+
")V", at = @At("HEAD"), order = 999)
160160
public void onRenderHotbarItem(DrawContext context, int x, int y, RenderTickCounter tickCounter, PlayerEntity player, ItemStack stack, int seed, CallbackInfo info) {
161161
if (stack.isEmpty()) {
162162
return;

0 commit comments

Comments
 (0)