From 420b983d59aecc1739b11916f60756933302f577 Mon Sep 17 00:00:00 2001 From: Thinkofname Date: Sun, 10 Apr 2016 20:54:16 +0100 Subject: [PATCH] Fix broken potion serialization --- .../java/org/bukkit/craftbukkit/inventory/CraftMetaPotion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaPotion.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaPotion.java index f512dc011a..e29e00c085 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaPotion.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaPotion.java @@ -280,7 +280,7 @@ class CraftMetaPotion extends CraftMetaItem implements PotionMeta { Builder serialize(Builder builder) { super.serialize(builder); if (type.getType() != PotionType.UNCRAFTABLE) { - builder.put(DEFAULT_POTION.BUKKIT, type); + builder.put(DEFAULT_POTION.BUKKIT, CraftPotionUtil.fromBukkit(type)); } if (hasCustomEffects()) {