Remove unneeded logging

This commit is contained in:
dfsek
2020-12-04 21:05:09 -07:00
parent 5754a95f48
commit 601eb3e7ff
6 changed files with 6 additions and 13 deletions

View File

@@ -56,17 +56,12 @@ public class StructurePopulator extends BlockPopulator {
struc.paste(spawn, chunk, rotation);
for(StructureContainedInventory i : struc.getInventories()) {
try {
Debug.info("Attempting to populate loot: " + i.getUid());
Vector2 lootCoords = RotationUtil.getRotatedCoords(new Vector2(i.getX() - struc.getStructureInfo().getCenterX(), i.getZ() - struc.getStructureInfo().getCenterZ()), rotation.inverse());
Location inv = spawn.clone().add(lootCoords.getX(), i.getY(), lootCoords.getZ());
Debug.info(FastMath.floorDiv(inv.getBlockX(), 16) + ":" + chunk.getX() + ", " + FastMath.floorDiv(inv.getBlockZ(), 16) + ":" + chunk.getZ());
if(FastMath.floorDiv(inv.getBlockX(), 16) != chunk.getX() || FastMath.floorDiv(inv.getBlockZ(), 16) != chunk.getZ())
continue;
Debug.info("Target is in chunk.");
Debug.info(spawn.toString() + " became: " + inv.toString() + " (" + rotation + ", " + inv.getBlock().getType() + ")");
LootTable table = conf.getLoot().get(i.getUid());
if(table == null) continue;
Debug.info("Target has table assigned.");
table.fillInventory(((BlockInventoryHolder) inv.getBlock().getState()).getInventory(), random);
} catch(ClassCastException e) {
Debug.error("Could not populate structure loot!");

View File

@@ -1,7 +1,6 @@
package com.dfsek.terra.util;
import com.dfsek.terra.Debug;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.Tag;
import org.jetbrains.annotations.NotNull;
@@ -30,7 +29,6 @@ public final class TagUtil {
try {
Tag<Material> tag = (Tag<Material>) field.get(new Object());
tagMap.put(tag.getKey().toString(), tag.getValues());
Debug.info("Loaded tag: #" + tag.getKey().toString());
} catch(IllegalAccessException e) {
e.printStackTrace();
} catch(ClassCastException ignore) {
@@ -57,7 +55,8 @@ public final class TagUtil {
|| !m.isSolid()) snow.add(m);
}
tagMap.put("terra:snow_blacklist", snow);
Bukkit.getLogger().info("Added " + snow.size() + " materials to snow blacklist");
Debug.info("Added " + snow.size() + " materials to snow blacklist");
Debug.info("Loaded " + tagMap.size() + " tags.");
}
private static Set<Material> getSet(Material... materials) {
@@ -66,7 +65,6 @@ public final class TagUtil {
private static void putCustomSet(String key, Material... materials) {
tagMap.put(key, getSet(materials));
Debug.info("Loaded tag: #" + key);
}
@NotNull