Rename revision 2
This commit is contained in:
@@ -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<org.bukkit.inventory.ItemStack> loot = new java.util.ArrayList<org.bukkit.inventory.ItemStack>();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user