mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 21:17:00 +01:00
Fixed gravel's enchantment detection
This commit is contained in:
parent
f6dc6745ed
commit
9c2b11ae94
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue