diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-27 17:00:20 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-27 17:00:20 +0000 |
commit | 9c2b11ae943c968f39d91097985ae5428ba0701b (patch) | |
tree | 25fef744bb318a78b17526c18085466e6c2c95fe /src/main/java/net/minecraft/server/BlockGravel.java | |
parent | f6dc6745edf97d76fff76740e9794c631799c939 (diff) | |
download | craftbukkit-9c2b11ae943c968f39d91097985ae5428ba0701b.tar craftbukkit-9c2b11ae943c968f39d91097985ae5428ba0701b.tar.gz craftbukkit-9c2b11ae943c968f39d91097985ae5428ba0701b.tar.lz craftbukkit-9c2b11ae943c968f39d91097985ae5428ba0701b.tar.xz craftbukkit-9c2b11ae943c968f39d91097985ae5428ba0701b.zip |
Fixed gravel's enchantment detection
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockGravel.java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockGravel.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/BlockGravel.java b/src/main/java/net/minecraft/server/BlockGravel.java index 6f627119..94163bf7 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; } } |