Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
Cant forget to fix mushroom growth
Dieser Commit ist enthalten in:
Ursprung
a9389ed3fb
Commit
e7e408f3a8
@ -63,7 +63,7 @@ index 8fa8302..f66ea7a 100644
|
|||||||
|
|
||||||
public void b(World world, int i, int j, int k, Random random) {
|
public void b(World world, int i, int j, int k, Random random) {
|
||||||
- if (random.nextInt((int) (world.growthOdds * 100 / world.getWorld().mushroomGrowthModifier * 25)) == 0) { // Spigot
|
- if (random.nextInt((int) (world.growthOdds * 100 / world.getWorld().mushroomGrowthModifier * 25)) == 0) { // Spigot
|
||||||
+ if (random.nextInt((int) (world.growthOdds / world.getWorld().mushroomGrowthModifier * 25)) == 0) { // Spigot
|
+ if (random.nextInt(Math.max(1, (int) world.growthOdds / world.getWorld().mushroomGrowthModifier * 25)) == 0) { // Spigot
|
||||||
byte b0 = 4;
|
byte b0 = 4;
|
||||||
int l = 5;
|
int l = 5;
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren