remove debug logging

This commit is contained in:
dfsek
2020-12-30 21:10:52 -07:00
parent bccfcdf9a1
commit 97f6cda4ad
4 changed files with 2 additions and 20 deletions

View File

@@ -78,7 +78,6 @@ public class StructureScript {
public boolean execute(Location location, Chunk chunk, Random random, Rotation rotation) {
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);
Block.ReturnLevel level = block.apply(buf, rotation, random, 0);
buf.setSucceeded(!level.equals(Block.ReturnLevel.FAIL));

View File

@@ -25,11 +25,6 @@ public abstract class Loader {
public Loader thenNames(Consumer<List<String>> consumer) {
consumer.accept(new GlueList<>(streams.keySet()));
System.out.println("names ^ ");
streams.forEach((name, stream) -> {
System.out.println(name);
});
System.out.println("names ^ ");
return this;
}

View File

@@ -3,8 +3,7 @@ package com.dfsek.terra.config.templates;
import com.dfsek.tectonic.annotations.Abstractable;
import com.dfsek.tectonic.annotations.Default;
import com.dfsek.tectonic.annotations.Value;
import com.dfsek.tectonic.config.ValidatedConfigTemplate;
import com.dfsek.tectonic.exception.ValidationException;
import com.dfsek.tectonic.config.ConfigTemplate;
import com.dfsek.terra.api.loot.LootTable;
import com.dfsek.terra.api.math.ProbabilityCollection;
import com.dfsek.terra.api.math.Range;
@@ -16,7 +15,7 @@ import java.util.List;
import java.util.Map;
@SuppressWarnings({"unused", "FieldMayBeFinal"})
public class StructureTemplate extends AbstractableTemplate implements ValidatedConfigTemplate {
public class StructureTemplate extends AbstractableTemplate implements ConfigTemplate {
@Value("id")
private String id;
@@ -64,10 +63,4 @@ public class StructureTemplate extends AbstractableTemplate implements Validated
public GridSpawn getSpawn() {
return spawn;
}
@Override
public boolean validate() throws ValidationException {
System.out.println("added structure " + id);
return true;
}
}

View File

@@ -3,9 +3,4 @@ package com.dfsek.terra.registry;
import com.dfsek.terra.generation.items.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);
}
}