Regardless of what the "effects/food" config option is set to, status effects are always displayed on food items (Golden Apples, Poisonous Potatoes, etc.).
|
if (config.getEffectsConfig().hasPotions()) { |
I'm guessing this is supposed to be config.getEffectsConfig().hasFood()?