Update CraftBukkit to Minecraft 1.4.4.

This commit is contained in:
Travis Watkins
2012-11-06 06:05:28 -06:00
parent a0c3b4f9d1
commit 7f7192f8fd
169 changed files with 3295 additions and 2774 deletions

View File

@@ -79,7 +79,7 @@ public class TileEntityMobSpawner extends TileEntity {
this.world.addEntity(entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER); // CraftBukkit
this.world.triggerEffect(2004, this.x, this.y, this.z, 0);
if (entityliving != null) {
entityliving.aQ();
entityliving.aR();
}
this.e();
@@ -107,12 +107,17 @@ public class TileEntityMobSpawner extends TileEntity {
entity.e(nbttagcompound);
} else if (entity instanceof EntityLiving && entity.world != null) {
((EntityLiving) entity).bD();
((EntityLiving) entity).bG();
}
}
private void e() {
this.spawnDelay = this.minSpawnDelay + this.world.random.nextInt(this.maxSpawnDelay - this.minSpawnDelay);
if (this.maxSpawnDelay <= this.minSpawnDelay) {
this.spawnDelay = this.minSpawnDelay;
} else {
this.spawnDelay = this.minSpawnDelay + this.world.random.nextInt(this.maxSpawnDelay - this.minSpawnDelay);
}
this.world.playNote(this.x, this.y, this.z, this.q().id, 1, 0);
}
@@ -157,7 +162,7 @@ public class TileEntityMobSpawner extends TileEntity {
}
}
public Packet l() {
public Packet getUpdatePacket() {
NBTTagCompound nbttagcompound = new NBTTagCompound();
this.b(nbttagcompound);