diff options
Diffstat (limited to 'src/main/java/net')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockGravel.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/BlockGravel.java b/src/main/java/net/minecraft/server/BlockGravel.java new file mode 100644 index 00000000..6f627119 --- /dev/null +++ b/src/main/java/net/minecraft/server/BlockGravel.java @@ -0,0 +1,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 a(int i, Random random, int j) { + j = Math.max(j, 3); // CraftBukkit - added to fix crash when j > 3 + return random.nextInt(10 - j * 3) == 0 ? Item.FLINT.id : this.id; + } +} |