mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-17 23:01:01 +01:00
SPIGOT-7849: Fix FoodComponent serialize with "using-converts-to" using null
By: Doc <nachito94@msn.com>
This commit is contained in:
parent
983dd759e8
commit
7fae51f18d
1 changed files with 6 additions and 1 deletions
|
@ -62,7 +62,12 @@ public final class CraftFoodComponent implements FoodComponent {
|
|||
result.put("saturation", getSaturation());
|
||||
result.put("can-always-eat", canAlwaysEat());
|
||||
result.put("eat-seconds", getEatSeconds());
|
||||
result.put("using-converts-to", getUsingConvertsTo());
|
||||
|
||||
ItemStack usingConvertsTo = getUsingConvertsTo();
|
||||
if (usingConvertsTo != null) {
|
||||
result.put("using-converts-to", usingConvertsTo);
|
||||
}
|
||||
|
||||
result.put("effects", getEffects());
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue