Skip to content

Commit

Permalink
Merge pull request #378 from lonefelidae16/fix/eating-particles
Browse files Browse the repository at this point in the history
fix horse eating particles
  • Loading branch information
juancarloscp52 authored Oct 19, 2024
2 parents 5ff4b0d + c752e06 commit 2275b18
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@Mixin(AbstractHorseEntity.class)
public class HorseEntityMixin{

@Inject(method = "interactHorse",at=@At("HEAD"))
@Inject(method = "interactHorse",at=@At(value = "INVOKE", target = "Lnet/minecraft/item/ItemStack;decrementUnlessCreative(ILnet/minecraft/entity/LivingEntity;)V"))
public void eat (PlayerEntity player, ItemStack stack, CallbackInfoReturnable<ActionResult> cir){
EatingParticlesUtil.spawnItemParticles(player, stack, ((AnimalEntity)(Object)this));
}
Expand Down

0 comments on commit 2275b18

Please sign in to comment.