mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 10:30:42 +00:00
Remove unneeded logging
This commit is contained in:
@@ -49,14 +49,14 @@ dependencies {
|
||||
|
||||
compileOnly("com.googlecode.json-simple:json-simple:1.1")
|
||||
|
||||
implementation(name = "parsii-1.2.1", group = "")
|
||||
implementation("com.scireum:parsii:1.2.1")
|
||||
|
||||
compileOnly("org.spigotmc:spigot-api:1.16.2-R0.1-SNAPSHOT")
|
||||
implementation("io.papermc:paperlib:1.0.5")
|
||||
|
||||
implementation("net.jafama:jafama:2.3.2")
|
||||
|
||||
implementation(name = "Tectonic-1.0.1", group = "")
|
||||
implementation(name = "Tectonic-1.0.2", group = "")
|
||||
|
||||
|
||||
// JUnit.
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -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!");
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -87,11 +87,11 @@ command:
|
||||
invalid: "Invalid Structure ID: \"%s\""
|
||||
export: "Saved structure to \"%s\""
|
||||
world-config:
|
||||
loading: "Loading world configuration values for world %s..."
|
||||
load: "Loading world configuration values for world \"%s\"..."
|
||||
not-found: "Configuration for world \"%s\" not found. Copying default config."
|
||||
using-image: "Loading world from image."
|
||||
error: "Unable to load configuration for world %s"
|
||||
done: "World load complete. Time elapsed: %sms"
|
||||
done: "World load for world \"%1$s\" complete. Time elapsed: %2$sms"
|
||||
config-pack:
|
||||
loaded: "config %1$s by %3$s loaded in %2$sms."
|
||||
config:
|
||||
|
||||
Reference in New Issue
Block a user