aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/dulkirfabric/mixin/ItemStackMixin.java
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-05-09 22:12:27 +0200
committerLinnea Gräf <nea@nea.moe>2024-05-09 22:12:27 +0200
commitdce5a156849a3ba1b09e28dbfc153fc14a7f7b2c (patch)
treeb51bffce829a14ed1bdccb581acec2dd1838540e /src/main/java/com/dulkirfabric/mixin/ItemStackMixin.java
parent9d2b7bec68f98228acf913f029f0383e4dcff3d7 (diff)
downloadDulkirMod-Fabric-dce5a156849a3ba1b09e28dbfc153fc14a7f7b2c.tar.gz
DulkirMod-Fabric-dce5a156849a3ba1b09e28dbfc153fc14a7f7b2c.tar.bz2
DulkirMod-Fabric-dce5a156849a3ba1b09e28dbfc153fc14a7f7b2c.zip
Port to 1.20.6HEADmaster
Diffstat (limited to 'src/main/java/com/dulkirfabric/mixin/ItemStackMixin.java')
-rw-r--r--src/main/java/com/dulkirfabric/mixin/ItemStackMixin.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/dulkirfabric/mixin/ItemStackMixin.java b/src/main/java/com/dulkirfabric/mixin/ItemStackMixin.java
index 7820bf3..f083290 100644
--- a/src/main/java/com/dulkirfabric/mixin/ItemStackMixin.java
+++ b/src/main/java/com/dulkirfabric/mixin/ItemStackMixin.java
@@ -1,7 +1,7 @@
package com.dulkirfabric.mixin;
import com.dulkirfabric.util.render.ItemChangeHandler;
-import net.minecraft.client.item.TooltipContext;
+import net.minecraft.client.item.TooltipType;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
@@ -20,7 +20,7 @@ public abstract class ItemStackMixin {
@Shadow public abstract Item getItem();
@Inject(method = "getTooltip", at = @At("HEAD"))
- private void onGetTooltip(@Nullable PlayerEntity player, TooltipContext context, CallbackInfoReturnable<List<Text>> cir) {
+ private void onGetTooltip(Item.TooltipContext context, @Nullable PlayerEntity player, TooltipType type, CallbackInfoReturnable<List<Text>> cir) {
ItemChangeHandler.INSTANCE.handle(this.getItem().getName().getString());
}
}