Advertisement
tahg

Untitled

Sep 13th, 2011
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. public void a(World world, int i, int j, int k, Random random) {
  2. if (!world.isStatic) {
  3. super.a(world, i, j, k, random);
  4. if (world.getLightLevel(i, j + 1, k) >= 9 && random.nextInt(30) == 0) {
  5. // CraftBukkit start
  6. this.b(world, i, j, k, random);
  7. if (world.getData(i, j, k) != this.id) {
  8. // If growing fails, requeue on half the time
  9. world.queueBlockTick(i, j, k, this.id, World.getTicksForChance(1D/30, 1));
  10. return;
  11. }
  12. }
  13. }
  14. this.queueBlockTick(world, i, j, k);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement