diff options
author | md_5 <git@md-5.net> | 2016-03-12 20:45:04 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-03-12 20:45:04 +1100 |
commit | 98e11881045219287f7b00cca66a4698b6023baa (patch) | |
tree | ba59d31f1481981160cb4c408086900ff1690ad6 /src/main | |
parent | 650ae8fbe37371aaabb503fee614ec7e3193635d (diff) | |
download | bukkit-98e11881045219287f7b00cca66a4698b6023baa.tar bukkit-98e11881045219287f7b00cca66a4698b6023baa.tar.gz bukkit-98e11881045219287f7b00cca66a4698b6023baa.tar.lz bukkit-98e11881045219287f7b00cca66a4698b6023baa.tar.xz bukkit-98e11881045219287f7b00cca66a4698b6023baa.zip |
SPIGOT-1899: Fix inverted potion arguments.
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/potion/Potion.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/potion/Potion.java b/src/main/java/org/bukkit/potion/Potion.java index b702b7a6..d800f7f1 100644 --- a/src/main/java/org/bukkit/potion/Potion.java +++ b/src/main/java/org/bukkit/potion/Potion.java @@ -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); } |