Make targets dismount whatever they are riding when they get possessed

This commit is contained in:
Electroblob77
2020-04-13 21:04:11 +01:00
parent d0bcbc8ed8
commit 01ab50cb27
@@ -212,6 +212,7 @@ public class Possession extends SpellRay {
possessor.eyeHeight = target.getEyeHeight();
setSize(possessor, target.width, target.height);
target.dismountRidingEntity();
target.setDead();
target.setNoAI(true);
target.setAttackTarget(null);