Fix giving normal water bottles for 1.9

This commit is contained in:
vemacs 2016-04-01 20:50:03 -06:00
parent 65a2e942c4
commit 8fe002f820

View File

@ -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) +