mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-18 06:40:55 +00:00
reformat
This commit is contained in:
@@ -14,10 +14,6 @@ group = "com.dfsek.terra.common"
|
||||
|
||||
dependencies {
|
||||
"shadedApi"(project(":common:api"))
|
||||
|
||||
|
||||
|
||||
|
||||
"compileOnly"("com.google.guava:guava:30.0-jre")
|
||||
|
||||
"testImplementation"("com.google.guava:guava:30.0-jre")
|
||||
|
||||
+1
-1
@@ -1,9 +1,9 @@
|
||||
package com.dfsek.terra.addons.tree;
|
||||
|
||||
import com.dfsek.terra.addons.tree.tree.TerraTree;
|
||||
import com.dfsek.terra.api.TerraPlugin;
|
||||
import com.dfsek.terra.api.config.ConfigFactory;
|
||||
import com.dfsek.terra.api.world.Tree;
|
||||
import com.dfsek.terra.addons.tree.tree.TerraTree;
|
||||
|
||||
public class TreeFactory implements ConfigFactory<TreeTemplate, Tree> {
|
||||
@Override
|
||||
|
||||
+2
-3
@@ -8,7 +8,6 @@ import com.dfsek.terra.api.util.collection.ProbabilityCollection;
|
||||
import com.dfsek.terra.api.vector.Vector2;
|
||||
import com.dfsek.terra.api.vector.Vector3;
|
||||
import com.dfsek.terra.api.world.Chunk;
|
||||
import com.dfsek.terra.api.world.Flora;
|
||||
import com.dfsek.terra.api.world.Tree;
|
||||
|
||||
public class TreeLayer {
|
||||
@@ -45,9 +44,9 @@ public class TreeLayer {
|
||||
BlockState current;
|
||||
int i = 0;
|
||||
for(int ignored : level) {
|
||||
current = chunk.getBlock((int) coords.getX(), level.getMax()-i, (int) coords.getZ());
|
||||
current = chunk.getBlock((int) coords.getX(), level.getMax() - i, (int) coords.getZ());
|
||||
if(item.getSpawnable().contains(current.getBlockType())) {
|
||||
item.plant(new Vector3((int) coords.getX(), level.getMax()-i, (int) coords.getZ()), chunk.getWorld(), PopulationUtil.getRandom(chunk, coords.hashCode()));
|
||||
item.plant(new Vector3((int) coords.getX(), level.getMax() - i, (int) coords.getZ()), chunk.getWorld(), PopulationUtil.getRandom(chunk, coords.hashCode()));
|
||||
}
|
||||
i--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user