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) {
- super.a(world, i, j, k, random);
- if (world.getLightLevel(i, j + 1, k) >= 9 && random.nextInt(30) == 0) {
- // CraftBukkit start
- this.b(world, i, j, k, random);
- if (world.getData(i, j, k) != this.id) {
- // If growing fails, requeue on half the time
- world.queueBlockTick(i, j, k, this.id, World.getTicksForChance(1D/30, 1));
- return;
- }
- }
- }
- this.queueBlockTick(world, i, j, k);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement