[SPIGOT-371] getType() returns null for Leaping potions. Created: 07/Jan/15 Updated: 12/Jan/15 Resolved: 12/Jan/15 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Corey Young | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Environment: |
Linux mint 32-bit, Craftbukkit-1.8.1 |
Attachments: |
![]() |
Description |
If you call getType() on a leaping potion, the result is null. I have made a quick to demonstrate the bug. To reproduce the bug, start a server with the plugin, place a leaping potion from the creative inventory in your hand, and run /gettype. The test plugin's source is here. The compiled test plugin has been included as an attachement. |
Comments |
Comment by Black Hole [ 07/Jan/15 ] |
This is because of a bug in PotionType. The damage value for PotionType.JUMP should be 11 instead of 15. |