Logging overhaul
This commit is contained in:
parent
29c2ebe8c2
commit
b29ade63f0
12 changed files with 130 additions and 40 deletions
|
@ -1,6 +1,7 @@
|
|||
package WayofTime.bloodmagic.livingArmour;
|
||||
|
||||
import WayofTime.bloodmagic.util.PleaseStopUsingMe;
|
||||
import WayofTime.bloodmagic.BloodMagic;
|
||||
import WayofTime.bloodmagic.util.BMLog;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
|
@ -31,7 +32,7 @@ public class LivingArmourHandler {
|
|||
try {
|
||||
Constructor<? extends LivingArmourUpgrade> ctor = clazz.getConstructor(int.class);
|
||||
if (ctor == null) {
|
||||
PleaseStopUsingMe.logger.error("Error adding living armour upgrade {} as it doesn't have a valid constructor.", upgrade.getUniqueIdentifier());
|
||||
BMLog.DEFAULT.error("Error adding living armour upgrade {} as it doesn't have a valid constructor.", upgrade.getUniqueIdentifier());
|
||||
} else {
|
||||
upgradeConstructorMap.put(upgrade.getUniqueIdentifier(), ctor);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue