mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-08 06:26:43 +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
|
@Override
|
||||||
public void onDestroyed(Caster<?> caster) {
|
public void onDestroyed(Caster<?> caster) {
|
||||||
|
if (caster.isClient()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
lights.forEach(ref -> {
|
lights.forEach(ref -> {
|
||||||
ref.ifPresent(caster.getWorld(), e -> {
|
ref.ifPresent(caster.getWorld(), e -> {
|
||||||
e.world.sendEntityStatus(e, (byte)60);
|
e.world.sendEntityStatus(e, (byte)60);
|
||||||
|
|
|
@ -113,6 +113,9 @@ public class NecromancySpell extends AbstractAreaEffectSpell {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDestroyed(Caster<?> caster) {
|
public void onDestroyed(Caster<?> caster) {
|
||||||
|
if (caster.isClient()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
LivingEntity master = caster.getMaster();
|
LivingEntity master = caster.getMaster();
|
||||||
summonedEntities.forEach(ref -> {
|
summonedEntities.forEach(ref -> {
|
||||||
ref.ifPresent(caster.getWorld(), e -> {
|
ref.ifPresent(caster.getWorld(), e -> {
|
||||||
|
|
Loading…
Reference in a new issue