Fixed #405 - Dusts not falling

This commit is contained in:
Calclavia 2014-03-11 20:43:00 +08:00
parent 2343724567
commit 0bc9aab4ca

View file

@ -63,19 +63,19 @@ public class BlockDust extends BlockTile
@Override @Override
public void onPostBlockPlaced(World world, int x, int y, int z, int metadata) public void onPostBlockPlaced(World world, int x, int y, int z, int metadata)
{ {
tryToFall(world, y, x, z); tryToFall(world, x, y, z);
} }
@Override @Override
public void onBlockAdded(World world, int x, int y, int z) public void onBlockAdded(World world, int x, int y, int z)
{ {
tryToFall(world, y, x, z); tryToFall(world, x, y, z);
} }
@Override @Override
public void onNeighborBlockChange(World world, int y, int x, int z, int id) public void onNeighborBlockChange(World world, int x, int y, int z, int id)
{ {
tryToFall(world, y, x, z); tryToFall(world, x, y, z);
} }
private void tryToFall(World world, int x, int y, int z) private void tryToFall(World world, int x, int y, int z)