From b8e1029cc206cb3a82fa097fb6bfb1340b391fea Mon Sep 17 00:00:00 2001 From: Su5eD Date: Sat, 29 Jul 2023 12:03:55 +0200 Subject: [PATCH] Add missing ItemStack mixin --- .../fabricmc/fabric/mixin/item/ItemStackMixin.java | 12 ++++++++++++ .../main/resources/fabric-item-api-v1.mixins.json | 3 ++- gradle.properties | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 fabric-item-api-v1/src/main/java/net/fabricmc/fabric/mixin/item/ItemStackMixin.java diff --git a/fabric-item-api-v1/src/main/java/net/fabricmc/fabric/mixin/item/ItemStackMixin.java b/fabric-item-api-v1/src/main/java/net/fabricmc/fabric/mixin/item/ItemStackMixin.java new file mode 100644 index 000000000..210bd6daf --- /dev/null +++ b/fabric-item-api-v1/src/main/java/net/fabricmc/fabric/mixin/item/ItemStackMixin.java @@ -0,0 +1,12 @@ +package net.fabricmc.fabric.mixin.item; + +import net.fabricmc.fabric.api.item.v1.FabricItemStack; + +import net.minecraft.item.ItemStack; + +import org.spongepowered.asm.mixin.Mixin; + +@Mixin(ItemStack.class) +public abstract class ItemStackMixin implements FabricItemStack { + +} diff --git a/fabric-item-api-v1/src/main/resources/fabric-item-api-v1.mixins.json b/fabric-item-api-v1/src/main/resources/fabric-item-api-v1.mixins.json index 1b0cfe654..a0d8d019c 100644 --- a/fabric-item-api-v1/src/main/resources/fabric-item-api-v1.mixins.json +++ b/fabric-item-api-v1/src/main/resources/fabric-item-api-v1.mixins.json @@ -3,7 +3,8 @@ "package": "net.fabricmc.fabric.mixin.item", "compatibilityLevel": "JAVA_16", "mixins": [ - "ItemMixin" + "ItemMixin", + "ItemStackMixin" ], "injectors": { "defaultRequire": 1 diff --git a/gradle.properties b/gradle.properties index ccbd9690e..17c81aefd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -67,4 +67,4 @@ fabric-client-tags-api-v1-version=1.1.1 loom.platform=forge forge_version=1.20.1-47.1.3 pack_format=15 -forgified_version=1.6.0 +forgified_version=1.6.1