mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-07 22:16:44 +01:00
Fixed light and necromancy spells not producing particle effects when recalling their entities
This commit is contained in:
parent
c27aad9154
commit
13402ae020
2 changed files with 6 additions and 0 deletions
|
@ -75,6 +75,9 @@ public class LightSpell extends AbstractSpell {
|
|||
|
||||
@Override
|
||||
public void onDestroyed(Caster<?> caster) {
|
||||
if (caster.isClient()) {
|
||||
return;
|
||||
}
|
||||
lights.forEach(ref -> {
|
||||
ref.ifPresent(caster.getWorld(), e -> {
|
||||
e.world.sendEntityStatus(e, (byte)60);
|
||||
|
|
|
@ -113,6 +113,9 @@ public class NecromancySpell extends AbstractAreaEffectSpell {
|
|||
|
||||
@Override
|
||||
public void onDestroyed(Caster<?> caster) {
|
||||
if (caster.isClient()) {
|
||||
return;
|
||||
}
|
||||
LivingEntity master = caster.getMaster();
|
||||
summonedEntities.forEach(ref -> {
|
||||
ref.ifPresent(caster.getWorld(), e -> {
|
||||
|
|
Loading…
Reference in a new issue