Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
DaPigGuy committed Dec 29, 2024
1 parent 0639438 commit 836f5ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/item/bow.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func (Bow) FuelInfo() FuelInfo {
// Release ...
func (Bow) Release(releaser Releaser, tx *world.Tx, ctx *UseContext, duration time.Duration) {
creative := releaser.GameMode().CreativeInventory()
held, left := releaser.HeldItems()
ticks := duration.Milliseconds() / 50
if ticks < 3 {
// The player must hold the bow for at least three ticks.
Expand Down Expand Up @@ -61,6 +60,7 @@ func (Bow) Release(releaser Releaser, tx *world.Tx, ctx *UseContext, duration ti
tip = arrow.Item().(Arrow).Tip
}

held, _ := releaser.HeldItems()
damage, punchLevel, burnDuration, consume := 2.0, 0, time.Duration(0), !creative
for _, enchant := range held.Enchantments() {
if f, ok := enchant.Type().(interface{ BurnDuration() time.Duration }); ok {
Expand Down

0 comments on commit 836f5ec

Please sign in to comment.