From c752e0679a177edf3095e02d4d2446cc734d2421 Mon Sep 17 00:00:00 2001 From: lonefelidae16 Date: Fri, 30 Aug 2024 15:02:52 +0900 Subject: [PATCH] fix horse eating particles avoid particle spawn when not receiving foods --- .../common/features/animalEatingParticles/HorseEntityMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/juancarloscp52/bedrockify/mixin/common/features/animalEatingParticles/HorseEntityMixin.java b/src/main/java/me/juancarloscp52/bedrockify/mixin/common/features/animalEatingParticles/HorseEntityMixin.java index f800c85f..ec691fd8 100644 --- a/src/main/java/me/juancarloscp52/bedrockify/mixin/common/features/animalEatingParticles/HorseEntityMixin.java +++ b/src/main/java/me/juancarloscp52/bedrockify/mixin/common/features/animalEatingParticles/HorseEntityMixin.java @@ -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 cir){ EatingParticlesUtil.spawnItemParticles(player, stack, ((AnimalEntity)(Object)this)); }