From 2fe89bac6fb47528fc6c73950cc4bb54c238ac07 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 12 Mar 2016 20:45:04 +1100 Subject: [PATCH] SPIGOT-1899: Fix inverted potion arguments. By: md_5 --- paper-api/src/main/java/org/bukkit/potion/Potion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/potion/Potion.java b/paper-api/src/main/java/org/bukkit/potion/Potion.java index b702b7a61a..d800f7f114 100644 --- a/paper-api/src/main/java/org/bukkit/potion/Potion.java +++ b/paper-api/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); }