mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Spells attached to a projectile should be notified of being attached
This commit is contained in:
parent
9426fedd22
commit
1c4e116ee8
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue