geforkt von Mirrors/Paper
Fixed gravel's enchantment detection
Dieser Commit ist enthalten in:
Ursprung
f6dc6745ed
Commit
9c2b11ae94
@ -9,7 +9,7 @@ public class BlockGravel extends BlockSand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int a(int i, Random random, int j) {
|
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;
|
return random.nextInt(10 - j * 3) == 0 ? Item.FLINT.id : this.id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren