Fix some logger usages
This commit is contained in:
parent
f89b5a005a
commit
90a071ae23
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue