mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-28 05:25:42 +01:00
Fixed gravel's enchantment detection
This commit is contained in:
parent
f6dc6745ed
commit
9c2b11ae94
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user