Cannot get potions with health boost power 4
VoltroXP opened this issue ยท 2 comments
Information
Full output of /ess version
:
Server version: 1.16.1-R0.1-SNAPSHOT git-Paper-135 (MC: 1.16.1)
EssentialsX version: 2.18.0.8
PlaceholderAPI version: 2.10.8
PermissionsEx version: 1.23.4
Vault version: 1.7.3-b131
Server log: https://gist.github.com/ElectricEzo/251c1e3d404466a6b548e07da09eb113
EssentialsX config: https://gist.github.com/ElectricEzo/2c727f4b203632273b28a11c9947cf7c
Details
Description
When using /potion or having potions in kits, potions with health boost power 4 have power 5 and potions with health boost power 5 have power 6. This means that potions cannot have health boost power 4 on them.
Steps to reproduce
- Get a water bottle.
- Do /potion effect:healthboost power:4 duration:100 (any duration works)
- Notice that the potion has Health Boost V, not Health Boost IV
- (Extra) Do /potion effect:healthboost power:5 duration:100
- (Extra) Notice that the potion has Health Boost VI, not Health Boost V
Expected behavior
I expected to have gotten a potion with the appropriate health boost level.
Essentials/Essentials/src/com/earth2me/essentials/MetaItemStack.java
Lines 364 to 366 in bc52ca8