Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude committed Mar 9, 2024
1 parent 4ed767b commit 9fc9989
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 9fc9989

Please sign in to comment.