mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 13:37:58 +01:00
Fix dismiss animations on placed spells
This commit is contained in:
parent
14084e270b
commit
d909ee47f1
1 changed files with 4 additions and 5 deletions
|
@ -136,11 +136,10 @@ public class CastSpellEntity extends LightEmittingEntity implements Caster<CastS
|
|||
}
|
||||
|
||||
spells.getSlots().get().ifPresent(spell -> {
|
||||
var entry = Ether.get(getWorld()).getOrCreate(spell, this);
|
||||
if (entry.hasChanged()) {
|
||||
//updatePositionAndAngles(getX(), getY(), getZ(), entry.getYaw(), entry.getPitch());
|
||||
}
|
||||
Ether.get(getWorld()).getOrCreate(spell, this);
|
||||
});
|
||||
} else if (isDead()) {
|
||||
spells.getSlots().clear();
|
||||
}
|
||||
|
||||
prevDeathTicks = deathTicks;
|
||||
|
@ -152,7 +151,7 @@ public class CastSpellEntity extends LightEmittingEntity implements Caster<CastS
|
|||
|
||||
@Override
|
||||
public void kill() {
|
||||
spells.getSlots().clear();
|
||||
setDead(true);
|
||||
}
|
||||
|
||||
public boolean isDead() {
|
||||
|
|
Loading…
Reference in a new issue