summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/BlockGravel.java
blob: 7da42695d702795b53750d3c2af14dadbf8204c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package net.minecraft.server;

import java.util.Random;

public class BlockGravel extends BlockSand {

    public BlockGravel(int i, int j) {
        super(i, j);
    }

    public int getDropType(int i, Random random, int j) {
        j = Math.min(j, 3); // CraftBukkit - added to fix crash when j > 3
        return random.nextInt(10 - j * 3) == 0 ? Item.FLINT.id : this.id;
    }
}