From 8d1108bbc7f01a9fee603029027798f07728680d Mon Sep 17 00:00:00 2001 From: Qzimyion Date: Sun, 24 Nov 2024 23:35:37 +0530 Subject: [PATCH] Removed comments --- .../trees/trunkPlacers/BetterPaleOakTrunkPlacer.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/main/java/net/qzimyion/cellulose/worldgen/trees/trunkPlacers/BetterPaleOakTrunkPlacer.java b/src/main/java/net/qzimyion/cellulose/worldgen/trees/trunkPlacers/BetterPaleOakTrunkPlacer.java index c4091d1..0b0f91c 100644 --- a/src/main/java/net/qzimyion/cellulose/worldgen/trees/trunkPlacers/BetterPaleOakTrunkPlacer.java +++ b/src/main/java/net/qzimyion/cellulose/worldgen/trees/trunkPlacers/BetterPaleOakTrunkPlacer.java @@ -48,8 +48,6 @@ public List placeTrunk(LevelSimulatedReader wor int currentX = trunkX; int currentZ = trunkZ; int trunkTopY = trunkY + height - 1; - - // Build the trunk with jagged twists for (int y = 0; y < height; y++) { if (y >= trunkHeight && branchSpacing > 0) { currentX += direction.getStepX(); @@ -73,14 +71,14 @@ public List placeTrunk(LevelSimulatedReader wor } private void createTwistedBranches(LevelSimulatedReader world, BiConsumer replacer, RandomSource random, int startY, int startX, int startZ, TreeConfiguration config) { - for (int i = 0; i < 4; i++) { // Maximum 4 branches for simplicity - int branchLength = random.nextInt(5) + 3; // Branch length between 3-7 blocks - int branchDirectionX = random.nextInt(3) - 1; // Random X offset (-1, 0, 1) - int branchDirectionZ = random.nextInt(3) - 1; // Random Z offset (-1, 0, 1) + for (int i = 0; i < 4; i++) { + int branchLength = random.nextInt(5) + 3; + int branchDirectionX = random.nextInt(3) - 1; + int branchDirectionZ = random.nextInt(3) - 1; int branchY = startY; for (int j = 0; j < branchLength; j++) { - branchY += random.nextInt(2) - 1; // Small vertical variance + branchY += random.nextInt(2) - 1; startX += branchDirectionX; startZ += branchDirectionZ;