ItemFoodSeeds impl as this:
|
public ItemFoodSeeds(Block block, Item.Properties prop, FoodInfo info) { |
|
super(block, prop); |
|
this.info = info; |
|
} |
But in ItemFoodBase, it is:
|
public ItemFoodBase(Item.Properties prop, FoodInfo info) { |
|
super(prop.food( |
|
new FoodProperties(info.getAmount(), info.getCalories(), info.isAlwaysEat(), info.getEatTime(), |
|
Optional.empty(), List.of()) |
|
)); |
|
this.info = info; |
|
} |
The wrong implementation of ItemFoodSeeds causes ItemFoodSeeds to lose the food properties, making this class not work properly.
ItemFoodSeeds impl as this:
MMLib/src/main/java/cn/mcmod_mmf/mmlib/item/ItemFoodSeeds.java
Lines 15 to 18 in 9246231
But in ItemFoodBase, it is:
MMLib/src/main/java/cn/mcmod_mmf/mmlib/item/ItemFoodBase.java
Lines 20 to 26 in 9246231
The wrong implementation of ItemFoodSeeds causes ItemFoodSeeds to lose the food properties, making this class not work properly.