mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 17:47:34 +01:00
Fix giving normal water bottles for 1.9
This commit is contained in:
parent
65a2e942c4
commit
8fe002f820
@ -30,6 +30,10 @@ public class BasePotionDataProvider extends PotionMetaProvider {
|
||||
|
||||
@Override
|
||||
public ItemStack createPotionItem(Material initial, int effectId) throws IllegalArgumentException {
|
||||
if (effectId == 0) {
|
||||
return new ItemStack(Material.POTION, 1);
|
||||
}
|
||||
|
||||
int damageValue = getBit(effectId, 0) +
|
||||
2 * getBit(effectId, 1) +
|
||||
4 * getBit(effectId, 2) +
|
||||
|
Loading…
Reference in New Issue
Block a user