diff options
author | Thinkofname <thinkofdeath@spigotmc.org> | 2016-04-10 20:54:16 +0100 |
---|---|---|
committer | Thinkofname <thinkofdeath@spigotmc.org> | 2016-04-10 20:54:16 +0100 |
commit | 420b983d59aecc1739b11916f60756933302f577 (patch) | |
tree | 4cb2a9eff9cdc2b4d4a24057b7af05c80a445787 /src/main/java/org | |
parent | d39a750709e95fd38d39422b5274598731847024 (diff) | |
download | craftbukkit-420b983d59aecc1739b11916f60756933302f577.tar craftbukkit-420b983d59aecc1739b11916f60756933302f577.tar.gz craftbukkit-420b983d59aecc1739b11916f60756933302f577.tar.lz craftbukkit-420b983d59aecc1739b11916f60756933302f577.tar.xz craftbukkit-420b983d59aecc1739b11916f60756933302f577.zip |
Fix broken potion serialization
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaPotion.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaPotion.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaPotion.java index f512dc01..e29e00c0 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<String, Object> serialize(Builder<String, Object> 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()) { |