mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Flying entities disguised as non-flying entities should not fly
This commit is contained in:
parent
3d27d10a8f
commit
8e436fa809
1 changed files with 5 additions and 0 deletions
|
@ -7,6 +7,7 @@ import org.jetbrains.annotations.Nullable;
|
|||
import com.minelittlepony.unicopia.FlightType;
|
||||
import com.minelittlepony.unicopia.Owned;
|
||||
import com.minelittlepony.unicopia.ability.magic.Caster;
|
||||
import com.minelittlepony.unicopia.entity.duck.LivingEntityDuck;
|
||||
import com.minelittlepony.unicopia.entity.player.PlayerDimensions;
|
||||
import com.minelittlepony.unicopia.entity.player.Pony;
|
||||
|
||||
|
@ -92,6 +93,10 @@ public interface Disguise extends FlightType.Provider, PlayerDimensions.Provider
|
|||
entity.tick();
|
||||
}
|
||||
|
||||
if (!(owner instanceof PlayerEntity) && !((LivingEntityDuck)owner).isJumping()) {
|
||||
owner.addVelocity(0, -0.09, 0);
|
||||
}
|
||||
|
||||
behaviour.update(source, entity, this);
|
||||
|
||||
if (source instanceof Pony) {
|
||||
|
|
Loading…
Reference in a new issue