[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: File BukkitBugTest.jar    

 Description   

If you call getType() on a leaping potion, the result is null.
Also, getEffects() returns an empty list.

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.

Generated at Sat Mar 29 11:43:12 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.