mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 16:28:00 +01:00
Fixed magic projectiles not actually using their caster's level
This commit is contained in:
parent
46e4d14bb0
commit
d9933bb3ec
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue