Skip to content

Commit

Permalink
entity/firework.go: Don't set firework owner if attached = false.
Browse files Browse the repository at this point in the history
Resolves #976.
  • Loading branch information
Sandertv committed Dec 28, 2024
1 parent a7874df commit f8ec722
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/entity/firework.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ func NewFireworkAttached(opts world.EntitySpawnOpts, firework item.Firework, own
conf.Firework = firework
conf.ExistenceDuration = firework.RandomisedDuration()
conf.Attached = attached
conf.Owner = owner.H()
if attached {
conf.Owner = owner.H()
}
return opts.New(FireworkType, conf)
}

Expand Down

0 comments on commit f8ec722

Please sign in to comment.