Skip to content

Commit

Permalink
Fixed ShowRevertedIllegals for 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTas committed Jan 3, 2025
1 parent 59c12c8 commit 041cd64
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
16 changes: 0 additions & 16 deletions src/main/java/dev/stardust/mixin/ItemStackAccessor.java

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/java/dev/stardust/mixin/ItemStackMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private static void showRevertedIllegals(NbtCompound nbt, CallbackInfoReturnable
nbt.putInt("Damage", dmg);
}
cir.cancel();
cir.setReturnValue(ItemStackAccessor.invokeInit(item, 69, Optional.of(nbt)));
cir.setReturnValue(new ItemStack(item.getRegistryEntry(), 69, Optional.of(nbt)));
}
}
}
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/stardust.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"NoRenderMixin",
"ItemStackMixin",
"DoorBlockMixin",
"ItemStackAccessor",
"PlayerEntityMixin",
"GoatHornItemMixin",
"LivingEntityMixin",
Expand Down

0 comments on commit 041cd64

Please sign in to comment.