mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-04 19:46:27 +00:00
Fix giving normal water bottles for 1.9
This commit is contained in:
parent
65a2e942c4
commit
8fe002f820
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,10 @@ public class BasePotionDataProvider extends PotionMetaProvider {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ItemStack createPotionItem(Material initial, int effectId) throws IllegalArgumentException {
|
public ItemStack createPotionItem(Material initial, int effectId) throws IllegalArgumentException {
|
||||||
|
if (effectId == 0) {
|
||||||
|
return new ItemStack(Material.POTION, 1);
|
||||||
|
}
|
||||||
|
|
||||||
int damageValue = getBit(effectId, 0) +
|
int damageValue = getBit(effectId, 0) +
|
||||||
2 * getBit(effectId, 1) +
|
2 * getBit(effectId, 1) +
|
||||||
4 * getBit(effectId, 2) +
|
4 * getBit(effectId, 2) +
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue