Skip to content

Commit

Permalink
Don't put immunity check in filterLiving.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandertv committed Nov 15, 2024
1 parent 710eaaf commit 8136e66
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/entity/firework_behaviour.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,10 @@ func (f *FireworkBehaviour) explode(e *Ent, tx *world.Tx) {
func filterLiving(seq iter.Seq[world.Entity]) iter.Seq[world.Entity] {
return func(yield func(world.Entity) bool) {
for e := range seq {
l, living := e.(Living)
if living || l.AttackImmune() {
if _, living := e.(Living); living {
continue
}
if !yield(l) {
if !yield(e) {
return
}
}
Expand Down

0 comments on commit 8136e66

Please sign in to comment.