From a547b3a384ceb53c071766af00967c211b8dbcda Mon Sep 17 00:00:00 2001 From: Electroblob77 <35599699+Electroblob77@users.noreply.github.com> Date: Tue, 30 Jun 2020 15:53:15 +0100 Subject: [PATCH] Fix spirit horse dispel sound/behaviour --- .../electroblob/wizardry/entity/living/EntitySpiritHorse.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/electroblob/wizardry/entity/living/EntitySpiritHorse.java b/src/main/java/electroblob/wizardry/entity/living/EntitySpiritHorse.java index ec70fa1c..a03639ab 100644 --- a/src/main/java/electroblob/wizardry/entity/living/EntitySpiritHorse.java +++ b/src/main/java/electroblob/wizardry/entity/living/EntitySpiritHorse.java @@ -101,7 +101,7 @@ public class EntitySpiritHorse extends EntityHorse { // clicking mounts the horse in this case). if(itemstack.getItem() instanceof ISpellCastingItem && this.getOwner() == player && player.isSneaking()){ // Prevents accidental double clicking. - if(this.ticksExisted > 20){ + if(this.ticksExisted > 20 && dispelTimer == 0){ this.dispelTimer++; @@ -167,7 +167,7 @@ public class EntitySpiritHorse extends EntityHorse { this.idleTimer = 0; } - if(this.idleTimer > 200){ + if(this.idleTimer > 200 && dispelTimer == 0){ this.playSound(WizardrySounds.ENTITY_SPIRIT_HORSE_VANISH, 0.7F, rand.nextFloat() * 0.4F + 1.0F);