Skip to content

Commit

Permalink
entity/firework.go: Set firework item
Browse files Browse the repository at this point in the history
  • Loading branch information
DaPigGuy committed Nov 24, 2024
1 parent 5ae07a2 commit 5dab218
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/entity/firework.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ func NewFirework(opts world.EntitySpawnOpts, firework item.Firework) *world.Enti
// may be attached to.
func NewFireworkAttached(opts world.EntitySpawnOpts, firework item.Firework, owner world.Entity, attached bool) *world.EntityHandle {
conf := fireworkConf
conf.Firework = firework
conf.ExistenceDuration = firework.RandomisedDuration()
conf.Attached = attached
conf.Owner = owner.H()
Expand Down

0 comments on commit 5dab218

Please sign in to comment.