Refactor Logger calls

This commit is contained in:
StoneLabs 2021-09-21 14:03:49 +02:00
parent a4260ec4fd
commit cca1e7dab3
2 changed files with 2 additions and 2 deletions

View File

@ -14,6 +14,6 @@ public class ExampleMod implements ModInitializer {
// However, some things (like resources) may still be uninitialized. // However, some things (like resources) may still be uninitialized.
// Proceed with mild caution. // Proceed with mild caution.
LOGGER.log(Level.INFO, "Hello Fabric world!"); LOGGER.info("Hello Fabric world!");
} }
} }

View File

@ -12,6 +12,6 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
public class ExampleMixin { public class ExampleMixin {
@Inject(at = @At("HEAD"), method = "init()V") @Inject(at = @At("HEAD"), method = "init()V")
private void init(CallbackInfo info) { private void init(CallbackInfo info) {
ExampleMod.LOGGER.log(Level.INFO, "This line is printed by an example mod mixin!"); ExampleMod.LOGGER.info("This line is printed by an example mod mixin!");
} }
} }