unexpected repair/damage behaviour #6643
Labels
bug
An issue that needs to be fixed. Alternatively, a PR fixing an issue.
completed
The issue has been fully resolved and the change will be in the next Skript update.
patch-ready
A PR/issue that has been approved and is ready to be merged/closed for the next patch version.
PR available
Issues which have a yet-to-be merged PR resolving it
priority: medium
Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).
Skript/Server Version
Bug Description
damage held item by 3
change the item's durability by(max durability)-3
instead of(current durability)-3
.Also I was using damage/repair effects by async way, but after PR #6586 server crashes sometimes when I use it.
(ik bukkit methods not thread-safe but it was working good before)
Expected Behavior
damage %item% by %number%
should decrease durability by the number.Steps to Reproduce
!damage held item by 3
several times.Item durability will stay at
(max)-3
.Errors or Screenshots
I know.. it's because of using async but I swear it was working fine. ^^
(I tried to use
synchronized (inventoryUpdateList)
in PlayerUtils#updateInventory)Other
The async one is special to my case. But damage expression needs to be fixed for the community.
Agreement
The text was updated successfully, but these errors were encountered: