mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-18 06:40:55 +00:00
remove debug logging
This commit is contained in:
@@ -78,7 +78,6 @@ public class StructureScript {
|
|||||||
|
|
||||||
public boolean execute(Location location, Chunk chunk, Random random, Rotation rotation) {
|
public boolean execute(Location location, Chunk chunk, Random random, Rotation rotation) {
|
||||||
StructureBuffer buffer = cache.computeIfAbsent(location, loc -> {
|
StructureBuffer buffer = cache.computeIfAbsent(location, loc -> {
|
||||||
System.out.println("Recalculating for (" + loc.getBlockX() + ", " + loc.getBlockZ() + "), chunk {" + chunk.getX() + ", " + chunk.getZ() + "}, cache size: " + cache.size());
|
|
||||||
StructureBuffer buf = new StructureBuffer(loc);
|
StructureBuffer buf = new StructureBuffer(loc);
|
||||||
Block.ReturnLevel level = block.apply(buf, rotation, random, 0);
|
Block.ReturnLevel level = block.apply(buf, rotation, random, 0);
|
||||||
buf.setSucceeded(!level.equals(Block.ReturnLevel.FAIL));
|
buf.setSucceeded(!level.equals(Block.ReturnLevel.FAIL));
|
||||||
|
|||||||
@@ -25,11 +25,6 @@ public abstract class Loader {
|
|||||||
|
|
||||||
public Loader thenNames(Consumer<List<String>> consumer) {
|
public Loader thenNames(Consumer<List<String>> consumer) {
|
||||||
consumer.accept(new GlueList<>(streams.keySet()));
|
consumer.accept(new GlueList<>(streams.keySet()));
|
||||||
System.out.println("names ^ ");
|
|
||||||
streams.forEach((name, stream) -> {
|
|
||||||
System.out.println(name);
|
|
||||||
});
|
|
||||||
System.out.println("names ^ ");
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,7 @@ package com.dfsek.terra.config.templates;
|
|||||||
import com.dfsek.tectonic.annotations.Abstractable;
|
import com.dfsek.tectonic.annotations.Abstractable;
|
||||||
import com.dfsek.tectonic.annotations.Default;
|
import com.dfsek.tectonic.annotations.Default;
|
||||||
import com.dfsek.tectonic.annotations.Value;
|
import com.dfsek.tectonic.annotations.Value;
|
||||||
import com.dfsek.tectonic.config.ValidatedConfigTemplate;
|
import com.dfsek.tectonic.config.ConfigTemplate;
|
||||||
import com.dfsek.tectonic.exception.ValidationException;
|
|
||||||
import com.dfsek.terra.api.loot.LootTable;
|
import com.dfsek.terra.api.loot.LootTable;
|
||||||
import com.dfsek.terra.api.math.ProbabilityCollection;
|
import com.dfsek.terra.api.math.ProbabilityCollection;
|
||||||
import com.dfsek.terra.api.math.Range;
|
import com.dfsek.terra.api.math.Range;
|
||||||
@@ -16,7 +15,7 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@SuppressWarnings({"unused", "FieldMayBeFinal"})
|
@SuppressWarnings({"unused", "FieldMayBeFinal"})
|
||||||
public class StructureTemplate extends AbstractableTemplate implements ValidatedConfigTemplate {
|
public class StructureTemplate extends AbstractableTemplate implements ConfigTemplate {
|
||||||
@Value("id")
|
@Value("id")
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
@@ -64,10 +63,4 @@ public class StructureTemplate extends AbstractableTemplate implements Validated
|
|||||||
public GridSpawn getSpawn() {
|
public GridSpawn getSpawn() {
|
||||||
return spawn;
|
return spawn;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean validate() throws ValidationException {
|
|
||||||
System.out.println("added structure " + id);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,9 +3,4 @@ package com.dfsek.terra.registry;
|
|||||||
import com.dfsek.terra.generation.items.TerraStructure;
|
import com.dfsek.terra.generation.items.TerraStructure;
|
||||||
|
|
||||||
public class StructureRegistry extends TerraRegistry<TerraStructure> {
|
public class StructureRegistry extends TerraRegistry<TerraStructure> {
|
||||||
@Override
|
|
||||||
public boolean add(String name, TerraStructure value) {
|
|
||||||
System.out.println("added structure " + name + " to registry");
|
|
||||||
return super.add(name, value);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user