[SPIGOT-3266] updateInventory() cancels bow pullback Created: 23/May/17  Updated: 23/May/17  Resolved: 23/May/17

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: FACEGUY Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: Craftbukkit, bukkit


 Description   

Calling updateInventory() when pulling back a bow resets the animation, making it very difficult to actually USE the bow for its intended purpose when its called. One might suggest "Don't call updateInventory() when pulling back a bow then, idiot?", but, unfortunately, if you want to cancel damage done to armor via the ItemDamageEvent, your inventory must be updated.

The above combination makes it impossible to use both the ItemDamageEvent on armor and also archery, which seems to me like it wouldn't be too uncommon a use case.

This... annoyance has been plaguing several projects that use different durability systems for some time, and I'd really appreciate it being looked at.

Thanks for your time.



 Comments   
Comment by md_5 [ 23/May/17 ]

Its absolutely unavoidable, its a client limitation, all updateInventory does is resend the inventory packets, it doesn't perform any action server side.

Generated at Tue Apr 22 06:38:50 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.