Updated CraftBukkit to 1.2

This commit is contained in:
Nathan Adams
2012-03-01 10:49:23 +00:00
parent e9ca87000c
commit 543c4879fe
143 changed files with 3710 additions and 4433 deletions

View File

@@ -21,7 +21,7 @@ public class TileEntityMobSpawner extends TileEntity {
return this.world.findNearbyPlayer((double) this.x + 0.5D, (double) this.y + 0.5D, (double) this.z + 0.5D, 16.0D) != null;
}
public void l_() {
public void q_() {
this.c = this.b;
if (this.c()) {
double d0 = (double) ((float) this.x + this.world.random.nextFloat());
@@ -79,14 +79,14 @@ public class TileEntityMobSpawner extends TileEntity {
if (entityliving.canSpawn()) {
this.world.addEntity(entityliving, SpawnReason.SPAWNER); // CraftBukkit
this.world.triggerEffect(2004, this.x, this.y, this.z, 0);
entityliving.ao();
entityliving.aB();
this.e();
}
}
}
}
super.l_();
super.q_();
}
}
@@ -105,4 +105,10 @@ public class TileEntityMobSpawner extends TileEntity {
nbttagcompound.setString("EntityId", this.mobName);
nbttagcompound.setShort("Delay", (short) this.spawnDelay);
}
public Packet d() {
int i = EntityTypes.a(this.mobName);
return new Packet132TileEntityData(this.x, this.y, this.z, 1, i);
}
}