mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Added reasons for entities regaining health.
This commit is contained in:
1 parent
f518ced9ad
commit
8a521ec629
4 files changed
+13
-5
No files matched your search
@@ -10,6 +10,7 @@ import org.bukkit.Bukkit;
|
||||
import org.bukkit.craftbukkit.CraftWorld;
|
||||
import org.bukkit.craftbukkit.inventory.CraftItemStack;
|
||||
import org.bukkit.event.entity.EntityDeathEvent;
|
||||
import org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason;
|
||||
// CraftBukkit end
|
||||
|
||||
public class EntityPlayer extends EntityHuman implements ICrafting {
|
||||
@@ -184,7 +185,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
||||
}
|
||||
|
||||
public void b(int i) {
|
||||
super.b(i);
|
||||
super.b(i, RegainReason.EATING);
|
||||
}
|
||||
|
||||
public void a(boolean flag) {
|
||||
|
||||
Reference in new issue
Block a user