mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 17:57:34 +01:00
SPIGOT-1899: Fix inverted potion arguments.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
46b34edb29
commit
2fe89bac6f
@ -143,7 +143,7 @@ public class Potion {
|
||||
Validate.isTrue(to.hasItemMeta(), "given itemstack is not a potion");
|
||||
Validate.isTrue(to.getItemMeta() instanceof PotionMeta, "given itemstack is not a potion");
|
||||
PotionMeta meta = (PotionMeta) to.getItemMeta();
|
||||
meta.setBasePotionData(new PotionData(type, level == 2, extended));
|
||||
meta.setBasePotionData(new PotionData(type, extended, level == 2));
|
||||
to.setItemMeta(meta);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user