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

Migrated to 1.20 🥳 #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions starvation/modinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"trollusk"
],
"description": "Realistic replacement for the Vanilla hunger system, based on human physiology.",
"version": "1.0.5",
"version": "1.0.6",
"dependencies": {
"game": ""
"game": "1.20.3"
}
}
2 changes: 1 addition & 1 deletion starvation/src/EntityBehaviorStarve.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private void ServerTickSlow(float deltaTime)
if (IsSelf)
{
double baseRegenSpeed = entity.Api.World.Config.GetString("playerHealthRegenSpeed", "1").ToFloat();
bh._playerHealthRegenSpeed = (float) (baseRegenSpeed * HealthRegenPenalty());
entity.WatchedAttributes.SetFloat("regenSpeed", (float)(baseRegenSpeed * HealthRegenPenalty()));
}

// Slower movement speed if starving
Expand Down