[SPIGOT-5753] PotionType.getEffectType() should return a list Created: 24/May/20 Updated: 09/Oct/23 Resolved: 09/Oct/23 |
|
| Status: | Resolved |
| Project: | Spigot |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Bomb | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | None | ||
| Version: | 1.13-1.15.2 |
| Guidelines Read: | Yes |
| Description |
|
Since a potion with 2 effects (turtle_master) appeared in Minecraft, PotionEffectType should be in the list. PotionEffectType effecttype = arrow.getBasePotionData().getType().getEffectType(); Should be: List<PotionEffectType> effecttypes = arrow.getBasePotionData().getType().getEffectTypes(); |
| Comments |
| Comment by TheCreeperCow [ 02/Jun/20 ] |
|
Never mind it seems that mojang did this on purpose so its not possible to make it return a list as turtle_master is a potion effect type on its self so the implementation is correct even tho its a bit retarded im afraid you will have to hard code a special case for this oneĀ |
| Comment by TheCreeperCow [ 02/Jun/20 ] |
|
Agreed. Working on it |