geforkt von Mirrors/Paper
Fix kelp modifier having reverse effect (#6806)
Dieser Commit ist enthalten in:
Ursprung
308d560605
Commit
3b65d0e14c
@ -6,6 +6,10 @@ Subject: [PATCH] Fix kelp modifier changing growth for other crops
|
|||||||
Also add growth modifiers for twisting vines, weeping vines, cave vines,
|
Also add growth modifiers for twisting vines, weeping vines, cave vines,
|
||||||
and glow berries
|
and glow berries
|
||||||
|
|
||||||
|
Also fix above-mentioned modifiers from having the reverse effect
|
||||||
|
|
||||||
|
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/world/level/block/CaveVinesBlock.java b/src/main/java/net/minecraft/world/level/block/CaveVinesBlock.java
|
diff --git a/src/main/java/net/minecraft/world/level/block/CaveVinesBlock.java b/src/main/java/net/minecraft/world/level/block/CaveVinesBlock.java
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/net/minecraft/world/level/block/CaveVinesBlock.java
|
--- a/src/main/java/net/minecraft/world/level/block/CaveVinesBlock.java
|
||||||
@ -51,7 +55,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ } else {
|
+ } else {
|
||||||
+ modifier = 100; // Above cases are exhaustive as of 1.18
|
+ modifier = 100; // Above cases are exhaustive as of 1.18
|
||||||
+ }
|
+ }
|
||||||
+ if ((Integer) state.getValue(GrowingPlantHeadBlock.AGE) < 25 && random.nextDouble() < (100.0D / modifier) * this.growPerTickProbability) { // Spigot
|
+ if ((Integer) state.getValue(GrowingPlantHeadBlock.AGE) < 25 && random.nextDouble() < (modifier / 100.0D) * this.growPerTickProbability) { // Spigot // Paper - fix growth modifier having the reverse effect
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
BlockPos blockposition1 = pos.relative(this.growthDirection);
|
BlockPos blockposition1 = pos.relative(this.growthDirection);
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren