[SPIGOT-4387] Item durability loops and is subtracted from items that fire BlockPlaceEvent Created: 20/Sep/18 Updated: 22/Dec/18 Resolved: 22/Dec/18 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | RoboMWM | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 1 |
Labels: | None |
Version: | git-Spigot-6b015b4-79ada74 (MC: 1.13.1) |
Guidelines Read: | Yes |
Description |
To reproduce: In a plugin: cancel all BlockPlaceEvent events.
The durability also "loops," such that an item with 1 use left (249/250 durability) will be restored to full durability.
Initially reported at https://github.com/TechFortress/GriefPrevention/issues/355 |
Comments |
Comment by Senmori [ 28/Sep/18 ] |
Ok, so I have a fix (not pushed yet) that fixes the issue. However, all it does is not let damageable items fire BlockPlaceEvents. |
Comment by Senmori [ 28/Sep/18 ] |
Yes, if you use an axe with 1 durability left and cancel the BlockPlaceEvent it will loop back to full durability. |
Comment by md_5 [ 28/Sep/18 ] |
Also doesn't fix the ticket - durability looping? |
Comment by Senmori [ 27/Sep/18 ] |
Just want to update this report: However, it does not fix certain tools firing the BlockPlaceEvent due to how the BlockPlaceEvent is called. I also did not want to change that because of the possibility of interfering with the BlockPlaceEvent firing. |
Comment by Senmori [ 21/Sep/18 ] |
Can confirm this bug exists. I'm working on it. |
Comment by md_5 [ 21/Sep/18 ] |
Why is a hoe firing a blockplaceevent o.o |