Added reasons for entities regaining health.

This commit is contained in:
EvilSeph committed 2011-06-30 13:42:18 -04:00
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) {