Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void a(World world, int i, int j, int k, Random random) {
- if (!world.isStatic) {
- if (world.getLightLevel(i, j + 1, k) < 4 && Block.q[world.getTypeId(i, j + 1, k)] > 2) {
- if (random.nextInt(4) != 0) {
- queueBlockTick(world, x, y, z);
- return;
- }
- world.setTypeId(i, j, k, Block.DIRT.id);
- } else if (world.getLightLevel(i, j + 1, k) >= 9) {
- int l = i + random.nextInt(3) - 1;
- // int i1 = j + random.nextInt(5) - 3; // CraftBukkit
- int j1 = k + random.nextInt(3) - 1;
- // CraftBukkit start
- for (int i1 = j + 1; i1 >= j - 3; i1--) {
- int k1 = world.getTypeId(l, i1 + 1, j1);
- if (world.getTypeId(l, i1, j1) == Block.DIRT.id && world.getLightLevel(l, i1 + 1, j1) >= 4 && Block.q[k1] <= 2) {
- world.setTypeId(l, i1, j1, Block.GRASS.id);
- queueBlockTick(world, l, i1, j1);
- return;
- }
- }
- queueBlockTick(world, x, y, z);
- // CraftBukkit end
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement