[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

@@ -77,11 +77,11 @@ public class BlockMinecartTrack extends Block {
return world.e(i, j - 1, k);
}
public void onPlace(World world, int i, int j, int k) {
public void postPlace(World world, int i, int j, int k, int l) { // CraftBukkit - onPlace(World, int, int, int) -> postPlace(World, int, int, int, int)
if (!world.isStatic) {
this.a(world, i, j, k, true);
if (this.id == Block.GOLDEN_RAIL.id) {
//this.doPhysics(world, i, j, k, this.id); // CraftBukkit - Fix dupe with pistons
this.doPhysics(world, i, j, k, this.id); // CraftBukkit - Fix dupe with pistons
}
}
}