Skip to content

[Bug][1.21.1] Wrong Impl of ItemFoodSeeds #11

@GLDYM

Description

@GLDYM

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions