mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Rework max health values. Fixes BUKKIT-4398
This commit is contained in:
1 parent
e79d26d7d7
commit
22adf8a3ce
12 files changed
+21
-60
No files matched your search
@@ -81,7 +81,7 @@ public class MobEffectList {
|
||||
|
||||
public void tick(EntityLiving entityliving, int i) {
|
||||
if (this.id == REGENERATION.id) {
|
||||
if (entityliving.getHealth() < entityliving.maxHealth) { // CraftBukkit - .getMaxHealth() -> .maxHealth
|
||||
if (entityliving.getHealth() < entityliving.getMaxHealth()) {
|
||||
entityliving.heal(1.0F, RegainReason.MAGIC_REGEN); // CraftBukkit
|
||||
}
|
||||
} else if (this.id == POISON.id) {
|
||||
|
||||
Reference in new issue
Block a user