From 2b5a61f03d135a3f4e82bc6f4b2b8ea47abd5dcb Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Thu, 15 Sep 2011 17:36:27 +0100 Subject: Rename revision 2 --- src/main/java/net/minecraft/server/EntityPlayer.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/main/java/net/minecraft/server/EntityPlayer.java') diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java index b49ed108..74476d7d 100644 --- a/src/main/java/net/minecraft/server/EntityPlayer.java +++ b/src/main/java/net/minecraft/server/EntityPlayer.java @@ -99,7 +99,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting { this.itemInWorldManager = new ItemInWorldManager((WorldServer) world); this.itemInWorldManager.player = this; this.itemInWorldManager.a(oldMode); - this.m = new FoodMetaData(); + this.foodData = new FoodMetaData(); // CraftBukkit end } @@ -139,7 +139,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting { } public void die(DamageSource damagesource) { - this.b.serverConfigurationManager.sendAll(new Packet3Chat(damagesource.a((EntityHuman) this))); + this.b.serverConfigurationManager.sendAll(new Packet3Chat(damagesource.a(this))); // CraftBukkit start java.util.List loot = new java.util.ArrayList(); @@ -184,7 +184,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting { } else { // CraftBukkit - this.b.pvpMode -> this.world.pvpMode if (!this.world.pvpMode && damagesource instanceof EntityDamageSource) { - Entity entity = damagesource.a(); + Entity entity = damagesource.getEntity(); if (entity instanceof EntityHuman) { return false; @@ -300,11 +300,11 @@ public class EntityPlayer extends EntityHuman implements ICrafting { --this.H; } - if (this.health != this.cb || this.cc != this.m.a() || this.m.c() == 0.0F != this.cd) { - this.netServerHandler.sendPacket(new Packet8UpdateHealth(this.health, this.m.a(), this.m.c())); + if (this.health != this.cb || this.cc != this.foodData.a() || this.foodData.c() == 0.0F != this.cd) { + this.netServerHandler.sendPacket(new Packet8UpdateHealth(this.health, this.foodData.a(), this.foodData.c())); this.cb = this.health; - this.cc = this.m.a(); - this.cd = this.m.c() == 0.0F; + this.cc = this.foodData.a(); + this.cd = this.foodData.c() == 0.0F; } if (this.expTotal != this.ce) { -- cgit v1.2.3