mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 21:19:00 +01:00
Fix broken potion serialization
This commit is contained in:
parent
d39a750709
commit
420b983d59
@ -280,7 +280,7 @@ class CraftMetaPotion extends CraftMetaItem implements PotionMeta {
|
|||||||
Builder<String, Object> serialize(Builder<String, Object> builder) {
|
Builder<String, Object> serialize(Builder<String, Object> builder) {
|
||||||
super.serialize(builder);
|
super.serialize(builder);
|
||||||
if (type.getType() != PotionType.UNCRAFTABLE) {
|
if (type.getType() != PotionType.UNCRAFTABLE) {
|
||||||
builder.put(DEFAULT_POTION.BUKKIT, type);
|
builder.put(DEFAULT_POTION.BUKKIT, CraftPotionUtil.fromBukkit(type));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasCustomEffects()) {
|
if (hasCustomEffects()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user