Skip to content

Commit

Permalink
Drinking now does nothing if not thirsty
Browse files Browse the repository at this point in the history
  • Loading branch information
Adubbz committed Jan 4, 2024
1 parent 772b48d commit ef1e2e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/src/main/java/toughasnails/thirst/ThirstData.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ public void addExhaustion(float exhaustion)
@Override
public void drink(int thirst, float hydrationModifier)
{
if (!this.isThirsty())
return;

this.thirstLevel = Math.min(thirst + this.thirstLevel, 20);
this.hydrationLevel = Math.min(this.hydrationLevel + (float)thirst * hydrationModifier * 2.0F, (float)this.thirstLevel);
}
Expand Down

0 comments on commit ef1e2e7

Please sign in to comment.