Fixed hurt noises playing when disguises have a larger hitbox than changelings

This commit is contained in:
Sollace 2019-02-09 19:46:16 +02:00
parent 2cb44efba1
commit c115acf69d
2 changed files with 2 additions and 5 deletions

View file

@ -1,12 +1,10 @@
package com.minelittlepony.unicopia.power;
import java.util.UUID;
import javax.annotation.Nullable;
import org.lwjgl.input.Keyboard;
import com.minelittlepony.unicopia.UClient;
import com.minelittlepony.unicopia.UParticles;
import com.minelittlepony.unicopia.player.IPlayer;
import com.minelittlepony.unicopia.player.PlayerSpeciesList;
@ -14,7 +12,6 @@ import com.minelittlepony.unicopia.power.data.Hit;
import com.minelittlepony.unicopia.spell.IMagicEffect;
import com.minelittlepony.unicopia.spell.SpellDisguise;
import com.minelittlepony.util.vector.VecHelper;
import com.mojang.authlib.GameProfile;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;

View file

@ -7,6 +7,7 @@ import javax.annotation.Nullable;
import com.minelittlepony.unicopia.Race;
import com.minelittlepony.unicopia.UClient;
import com.minelittlepony.unicopia.mixin.MixinEntity;
import com.minelittlepony.unicopia.player.IOwned;
import com.minelittlepony.unicopia.player.IPlayer;
import com.minelittlepony.unicopia.player.PlayerSpeciesList;
@ -194,10 +195,9 @@ public class SpellDisguise extends AbstractSpell {
entity.extinguish();
}
entity.noClip = true;
entity.updateBlocked = true;
owner.height = entity.height;
entity.setSneaking(owner.isSneaking());
entity.setInvisible(false);