From 5a1251bb2774a33096f1a8d98c68d7c30714aab2 Mon Sep 17 00:00:00 2001 From: cheaterpaul Date: Sun, 25 Feb 2024 14:09:00 +0100 Subject: [PATCH] ensure 0 max blood counts as no blood --- .../java/de/teamlapen/vampirism/entity/ExtendedCreature.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/teamlapen/vampirism/entity/ExtendedCreature.java b/src/main/java/de/teamlapen/vampirism/entity/ExtendedCreature.java index b22a8c12c..7ddd7c095 100755 --- a/src/main/java/de/teamlapen/vampirism/entity/ExtendedCreature.java +++ b/src/main/java/de/teamlapen/vampirism/entity/ExtendedCreature.java @@ -146,7 +146,10 @@ public int getMaxBlood() { * Set's maximum blood and current blood */ private void setMaxBlood(int blood) { - maxBlood = blood; + if (this.maxBlood <= 0) { + blood = -1; + } + this.maxBlood = blood; this.blood = blood; }