Fixed magic projectiles not actually using their caster's level

This commit is contained in:
Sollace 2022-09-01 23:00:20 +02:00
parent 46e4d14bb0
commit d9933bb3ec

View file

@ -117,7 +117,12 @@ public class MagicProjectileEntity extends ThrownItemEntity implements Caster<Li
@Override @Override
public LevelStore getLevel() { public LevelStore getLevel() {
return LEVELS; return Caster.of(getMaster()).map(Caster::getLevel).orElse(LEVELS);
}
@Override
public LevelStore getCorruption() {
return Caster.of(getMaster()).map(Caster::getCorruption).orElse(LEVELS);
} }
@Override @Override