Random small stuff

This commit is contained in:
Noah van der Aa
2024-12-14 14:31:00 +01:00
parent 017359bc0f
commit 729c6e5369
7 changed files with 52 additions and 64 deletions

View File

@@ -0,0 +1,10 @@
--- a/net/minecraft/world/level/levelgen/feature/treedecorators/CocoaDecorator.java
+++ b/net/minecraft/world/level/levelgen/feature/treedecorators/CocoaDecorator.java
@@ -26,6 +_,7 @@
@Override
public void place(TreeDecorator.Context context) {
+ if (context.logs().isEmpty()) return; // Paper - Fix crash when trying to generate without logs
RandomSource randomSource = context.random();
if (!(randomSource.nextFloat() >= this.probability)) {
List<BlockPos> list = context.logs();