Fix some logger usages

This commit is contained in:
Nicholas Ignoffo 2018-02-17 09:54:29 -08:00
parent f89b5a005a
commit 90a071ae23
3 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@ public class ImperfectRitualRegistry {
public static void registerRitual(ImperfectRitual imperfectRitual, String id, boolean enabled) {
if (imperfectRitual != null) {
if (registry.containsKey(id))
BMLog.DEFAULT.error("Duplicate imperfect ritual id: %s", id);
BMLog.DEFAULT.error("Duplicate imperfect ritual id: {}", id);
else {
registry.put(id, imperfectRitual);
enabledRituals.put(imperfectRitual, enabled);

View file

@ -35,7 +35,7 @@ public class RitualRegistry {
if (ritual != null) {
if (registry.containsKey(id))
BMLog.DEFAULT.error("Duplicate ritual id: %s", id);
BMLog.DEFAULT.error("Duplicate ritual id: {}", id);
else {
registry.put(id, ritual);
enabledRituals.put(ritual, enabled);

View file

@ -46,13 +46,13 @@ public class WorldDemonWillHandler {
public static void addWillWorld(int dim) {
if (!containedWills.containsKey(dim)) {
containedWills.put(dim, new WillWorld(dim));
BMLog.DEBUG.info("Creating demon will cache for world " + dim);
BMLog.DEBUG.info("Creating demon will cache for world {}", dim);
}
}
public static void removeWillWorld(int dim) {
containedWills.remove(dim);
BMLog.DEBUG.info("Removing demon will cache for world " + dim);
BMLog.DEBUG.info("Removing demon will cache for world {}", dim);
}
public static void addWillChunk(int dim, Chunk chunk, short base, DemonWillHolder currentWill) {