Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude authored and ALongStringOfNumbers committed May 5, 2024
1 parent 2061508 commit 1702eb8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ public class RecipeRepairItemMixin {
@WrapOperation(method = "getRemainingItems",
at = @At(value = "INVOKE",
target = "Lnet/minecraft/util/NonNullList;set(ILjava/lang/Object;)Ljava/lang/Object;"))
public Object gregtechCEU$getRemainingItemsWrap(NonNullList<Object> instance, int index, Object newValue, Operation<Object> original,
@Local(ordinal = 0) ItemStack itemStack) {
public Object gregtechCEU$getRemainingItemsWrap(NonNullList<Object> instance, int index, Object newValue,
Operation<Object> original,
@Local(ordinal = 0) ItemStack itemStack) {
if (itemStack.getItem() instanceof IGTTool) {
ForgeEventFactory.onPlayerDestroyItem(ForgeHooks.getCraftingPlayer(), itemStack, null);
return instance.get(index);
Expand Down

0 comments on commit 1702eb8

Please sign in to comment.