Nbt Crafting (Fabric)

Nbt Crafting (Fabric)

630k Downloads

[bug] MixinItemStack breaks cardinal components

Frontrider opened this issue ยท 1 comments

commented

Version
1.6.4
Describe the bug
This inject is extremely invasive and specifically breaks cardinal components and everyone else who is trying to do anything with items.

@Inject(method = "areTagsEqual", at = @At("HEAD"), cancellable = true)
private static void areTagsEqual(ItemStack stack1, ItemStack stack2, CallbackInfoReturnable<Boolean> callbackInfoReturnable) {
if (!stack1.hasTag() && !stack2.hasTag())
callbackInfoReturnable.setReturnValue(true);
}

To Reproduce
use cardinal components.
Expected behavior
Cardinal components'/vanilla minecraft's correct item equality methods to be called, but they never do as you cancel them.

commented

fixed in 2.0.3 - somehow this issue wasn't closed