From 9c2b11ae943c968f39d91097985ae5428ba0701b Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Sun, 27 Nov 2011 17:00:20 +0000 Subject: [PATCH] Fixed gravel's enchantment detection --- src/main/java/net/minecraft/server/BlockGravel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/BlockGravel.java b/src/main/java/net/minecraft/server/BlockGravel.java index 6f6271194a..94163bf79b 100644 --- a/src/main/java/net/minecraft/server/BlockGravel.java +++ b/src/main/java/net/minecraft/server/BlockGravel.java @@ -9,7 +9,7 @@ public class BlockGravel extends BlockSand { } public int a(int i, Random random, int j) { - j = Math.max(j, 3); // CraftBukkit - added to fix crash when j > 3 + 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; } }