mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 18:39:42 -05:00
Implement entity max health methods. Adds BUKKIT-266
This commit is contained in:
1 parent
4e1793f363
commit
ced0646351
10 files changed
+92
-18
No files matched your search
@@ -75,7 +75,7 @@ public class MobEffectList {
|
||||
|
||||
public void tick(EntityLiving entityliving, int i) {
|
||||
if (this.id == REGENERATION.id) {
|
||||
if (entityliving.getHealth() < entityliving.getMaxHealth()) {
|
||||
if (entityliving.getHealth() < entityliving.maxHealth) { // CraftBukkit - .getMaxHealth() -> .maxHealth
|
||||
entityliving.heal(1, RegainReason.MAGIC_REGEN); // CraftBukkit
|
||||
}
|
||||
} else if (this.id == POISON.id) {
|
||||
|
||||
Reference in new issue
Block a user