[Bleeding] Audit of onPlace methods, Moved to postPlace as appropriate.

Closes BUKKIT-89
This commit is contained in:
Tahg
2012-01-17 19:37:58 -05:00
committed by EvilSeph
parent e92bdab57a
commit c7716e1de4
12 changed files with 645 additions and 8 deletions

View File

@@ -83,6 +83,8 @@ public class TileEntityPiston extends TileEntity {
this.i();
if (this.world.getTypeId(this.x, this.y, this.z) == Block.PISTON_MOVING.id) {
this.world.setTypeIdAndData(this.x, this.y, this.z, this.a, this.b);
Block block = Block.byId[this.world.getTypeId(this.x, this.y, this.z)];
if (block != null) block.postPlace(this.world, this.x, this.y, this.z, 0);
}
}
}
@@ -97,6 +99,8 @@ public class TileEntityPiston extends TileEntity {
this.i();
if (this.world.getTypeId(this.x, this.y, this.z) == Block.PISTON_MOVING.id) {
this.world.setTypeIdAndData(this.x, this.y, this.z, this.a, this.b);
Block block = Block.byId[this.world.getTypeId(this.x, this.y, this.z)];
if (block != null) block.postPlace(this.world, this.x, this.y, this.z, 0);
}
} else {
this.f += 0.5F;