1
0
Fork 0
mirror of https://github.com/Sollace/Unicopia.git synced 2025-04-11 05:27:38 +02:00

Spells attached to a projectile should be notified of being attached

This commit is contained in:
Sollace 2019-03-05 16:12:32 +02:00
parent 9426fedd22
commit 1c4e116ee8
2 changed files with 4 additions and 1 deletions
src/main/java/com/minelittlepony/unicopia/entity

View file

@ -97,6 +97,10 @@ public class EntityProjectile extends EntitySnowball implements IMagicals, ICast
@Override
public void setEffect(IMagicEffect effect) {
effectDelegate.set(effect);
if (effect != null) {
effect.onPlaced(this);
}
}
@Override

View file

@ -242,7 +242,6 @@ public class EntitySpell extends EntityCreature implements IMagicals, ICaster<En
@Override
protected void updateFallState(double y, boolean onGround, IBlockState state, BlockPos pos) {
this.onGround = true;
//super.updateFallState(y, onGround = this.onGround = true, state, pos);
}
@Override