fix all logger names

This commit is contained in:
Sen 2025-05-25 18:30:12 +02:00
parent bb64949927
commit 63c2a18c3a
38 changed files with 154 additions and 155 deletions

View file

@ -107,7 +107,7 @@ public class Attributes
}
else
{
Log.JNI.warn("Ignoriere unbekannte Attribute \'" + nbttagcompound.getString("Name") + "\'");
Log.TICK.warn("Ignoriere unbekannte Attribute \'" + nbttagcompound.getString("Name") + "\'");
}
}
}
@ -154,7 +154,7 @@ public class Attributes
}
catch (Exception exception)
{
Log.JNI.warn("Konnte Attribute nicht erstellen: " + exception.getMessage());
Log.TICK.warn("Konnte Attribute nicht erstellen: " + exception.getMessage());
return null;
}
}

View file

@ -121,7 +121,7 @@ public enum Biome {
}
else
{
Log.JNI.warn("Biom-ID ist nicht im Bereich: " + id + ", verwende " + DEF_BIOME.id + " (" + DEF_BIOME.name + ")");
Log.TICK.warn("Biom-ID ist nicht im Bereich: " + id + ", verwende " + DEF_BIOME.id + " (" + DEF_BIOME.name + ")");
return DEF_BIOME;
}
}
@ -135,7 +135,7 @@ public enum Biome {
}
else
{
Log.JNI.warn("Biom-ID ist nicht im Bereich: " + id + ", verwende " + DEF_BIOME.id + " (" + DEF_BIOME.name + ")");
Log.TICK.warn("Biom-ID ist nicht im Bereich: " + id + ", verwende " + DEF_BIOME.id + " (" + DEF_BIOME.name + ")");
return DEF_BIOME;
}
}

View file

@ -388,7 +388,7 @@ public class EntityTrackerEntry {
private Packet createSpawnPacket() {
if(this.trackedEntity.dead) {
Log.JNI.warn("Erstelle Spawn-Paket für entferntes Objekt");
Log.TICK.warn("Erstelle Spawn-Paket für entferntes Objekt");
}
SPacketSpawnObject packet = null;

View file

@ -507,7 +507,7 @@ public class EntityItem extends Entity
{
if (this.worldObj != null)
{
Log.JNI.warn("Gegenstand-Objekt " + this.getId() + " hat kein Item?!");
Log.TICK.warn("Gegenstand-Objekt " + this.getId() + " hat kein Item?!");
}
return new ItemStack(Blocks.stone);

View file

@ -140,7 +140,7 @@ public abstract class EntityRegistry {
entity.readFromNBT(nbt);
}
else {
Log.JNI.warn("Ignoriere Objekt mit Name " + nbt.getString("id"));
Log.TICK.warn("Ignoriere Objekt mit Name " + nbt.getString("id"));
}
return entity;
@ -161,7 +161,7 @@ public abstract class EntityRegistry {
}
if(entity == null) {
Log.JNI.warn("Ignoriere Objekt mit ID " + entityID);
Log.TICK.warn("Ignoriere Objekt mit ID " + entityID);
}
return entity;
@ -195,7 +195,7 @@ public abstract class EntityRegistry {
}
if(entity == null) {
Log.JNI.warn("Ignoriere Objekt mit ID " + entityID);
Log.TICK.warn("Ignoriere Objekt mit ID " + entityID);
}
return entity;

View file

@ -144,7 +144,7 @@ public abstract class UniverseRegistry {
for(int z = 0; z < list.tagCount(); z++) {
NBTTagCompound link = list.getCompoundTagAt(z);
if(!assign(link.getString("Celestial"), link.getString("Center")))
Log.JNI.warn("Konnte '" + link.getString("Celestial") + "' nicht zu '" + link.getString("Center") + "' zuweisen");
Log.TICK.warn("Konnte '" + link.getString("Celestial") + "' nicht zu '" + link.getString("Center") + "' zuweisen");
}
}

View file

@ -17,7 +17,6 @@ public enum Log {
CONSOLE("Console"),
TICK("Tick"),
SOUND("Sound"),
JNI("JNI"),
NETWORK("Network");
private static class LogMessage {

View file

@ -106,7 +106,7 @@ public class NBTTagList extends NBTBase
{
if (nbt.getId() == 0)
{
Log.JNI.warn("Ungültiger End-Tag zu Tag-Liste hinzugefügt");
Log.IO.warn("Ungültiger End-Tag zu Tag-Liste hinzugefügt");
}
else
{
@ -116,7 +116,7 @@ public class NBTTagList extends NBTBase
}
else if (this.tagType != nbt.getId())
{
Log.JNI.warn("Füge ungleiche Tag-Typen zu Tag-Liste hinzu");
Log.IO.warn("Füge ungleiche Tag-Typen zu Tag-Liste hinzu");
return;
}
@ -131,7 +131,7 @@ public class NBTTagList extends NBTBase
{
if (nbt.getId() == 0)
{
Log.JNI.warn("Ungültiger End-Tag zu Tag-Liste hinzugefügt");
Log.IO.warn("Ungültiger End-Tag zu Tag-Liste hinzugefügt");
}
else if (idx >= 0 && idx < this.tagList.size())
{
@ -141,7 +141,7 @@ public class NBTTagList extends NBTBase
}
else if (this.tagType != nbt.getId())
{
Log.JNI.warn("Füge ungleiche Tag-Typen zu Tag-Liste hinzu");
Log.IO.warn("Füge ungleiche Tag-Typen zu Tag-Liste hinzu");
return;
}
@ -149,7 +149,7 @@ public class NBTTagList extends NBTBase
}
else
{
Log.JNI.warn("Index außerhalb des Bereiches um Tag in Tag-Liste zu setzen");
Log.IO.warn("Index außerhalb des Bereiches um Tag in Tag-Liste zu setzen");
}
}

View file

@ -36,7 +36,7 @@ public class PotionEffect {
public PotionEffect combine(PotionEffect other) {
if(this.potion != other.potion)
Log.JNI.warn("PotionEffect.combine(): Diese Methode sollte nur für gleiche Effekte aufgerufen werden!");
Log.TICK.warn("PotionEffect.combine(): Diese Methode sollte nur für gleiche Effekte aufgerufen werden!");
int duration = this.duration;
int amplifier = this.amplifier;
int remaining = this.remaining;

View file

@ -102,7 +102,7 @@ public abstract class TileEntity
}
else
{
Log.JNI.warn("Ignoriere Block-Objekt mit ID " + nbt.getString("id"));
Log.TICK.warn("Ignoriere Block-Objekt mit ID " + nbt.getString("id"));
}
return tileentity;

View file

@ -475,7 +475,7 @@ public abstract class Chunk {
int z = ExtMath.floord(entity.posZ / 16.0D);
if(x != this.xPos || z != this.zPos) {
Log.JNI.warn("Falsche Position! (" + x + ", " + z + ") sollte (" + this.xPos + ", " + this.zPos + ") sein, " + entity);
Log.TICK.warn("Falsche Position! (" + x + ", " + z + ") sollte (" + this.xPos + ", " + this.zPos + ") sein, " + entity);
entity.setDead();
}