Skip to content

Commit

Permalink
firework_behaviour.go: Fixed filterLiving check being inverted.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandertv committed Nov 23, 2024
1 parent 7f0935c commit 9237140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/entity/firework_behaviour.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ 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 {
if _, living := e.(Living); living {
if _, living := e.(Living); !living {
continue
}
if !yield(e) {
Expand Down

0 comments on commit 9237140

Please sign in to comment.