Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix food features and update food values #578

Merged
merged 1 commit into from Oct 22, 2017

Conversation

kaenganxt
Copy link
Member

This pull request fixes some food related features and updates the food values like restored hunger, saturation and the applied potion effects.

The following things are done by this PR:

  • Update restored hunger and saturation according to the Minecraft wiki
  • New ItemSoup class which returns an empty bowl to the player
  • Added beetroot, beetroot soup and chorus fruit as food
  • Update potion effect chances, durations and levels according to the Minecraft wiki and some additional investigation
  • Changed the food potion effects to use new PotionEffect(...) because the old version uses the "duration modifiers" (I have no clue why these exist) which change the given duration depending on the potion effect resulting in wrong durations applied to the player
  • Use an equals in the eating logic as getItemInHand returns a copy of the itemstack object

@aramperes aramperes self-requested a review October 22, 2017 18:55
@aramperes aramperes merged commit 1dd0368 into GlowstoneMC:master Oct 22, 2017
@aramperes
Copy link
Member

Thanks!

picknchew pushed a commit to picknchew/Glowstone that referenced this pull request Oct 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants