Fixed insane fall damage (entities reset on death)

This commit is contained in:
Dinnerbone
2010-12-30 20:34:26 +00:00
parent a063036210
commit a9191c24b3
6 changed files with 59 additions and 12 deletions

View File

@@ -7,7 +7,7 @@ import org.bukkit.HumanEntity;
import org.bukkit.ItemStack;
public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
private final EntityPlayer entity;
private EntityPlayer entity;
public CraftHumanEntity(final CraftServer server, final EntityPlayer entity) {
super(server, entity);
@@ -29,6 +29,11 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
return entity;
}
public void setHandle(final EntityPlayer entity) {
super.setHandle((EntityPlayer)entity);
this.entity = entity;
}
@Override
public String toString() {
return "CraftHumanEntity{" + "id=" + getEntityID() + "name=" + getName() + '}';