Skip to content

Commit

Permalink
Register missing mixin accessor
Browse files Browse the repository at this point in the history
(cherry picked from commit e39b026)
  • Loading branch information
0xTas committed Jan 3, 2025
1 parent 6dc4748 commit fd36b07
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/java/dev/stardust/mixin/ItemStackAccessor.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package dev.stardust.mixin;

import java.util.Optional;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NbtCompound;
import org.spongepowered.asm.mixin.Mixin;
import net.minecraft.item.ItemConvertible;
import org.spongepowered.asm.mixin.gen.Invoker;

@Mixin(ItemStack.class)
public interface ItemStackAccessor {
@Invoker("<init>")
static ItemStack invokeInit(ItemConvertible item, int count, Optional<NbtCompound> nbt) {
throw new AssertionError();
}
}

0 comments on commit fd36b07

Please sign in to comment.