Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into feature/explosions
Browse files Browse the repository at this point in the history
  • Loading branch information
JustTalDevelops committed Jul 15, 2022
2 parents 61f945c + 16c12e9 commit 4a3db7d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/entity/effect.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ func (m *EffectManager) Tick(entity Living) {
for _, eff := range toEnd {
eff.Type().(effect.LastingType).End(entity, eff.Level())
}

if len(toEnd) > 0 {
for _, v := range entity.World().Viewers(entity.Position()) {
v.ViewEntityState(entity)
}
}
}

// expired checks if an Effect has expired.
Expand Down

0 comments on commit 4a3db7d

Please sign in to comment.