mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-21 08:02:13 +00:00
Fix 'Preparing <config> (count)' message
Previously, the message was logged before the mixins in the config were initialzed, leading to the 'count' always being 0. This commit moves the message to after the initialization of the config, and changes the message from 'Preparing' to 'Prepared' Since any exception caught during config intiialization is logged with the mixin config, no information is hidden by this change.
This commit is contained in:
1 parent
00f2b8e202
commit
5558a5c94a
1 file changed
+1
-1
@@ -545,8 +545,8 @@ public class MixinTransformer extends TreeTransformer {
|
||||
private void initConfigs() {
|
||||
for (MixinConfig config : this.pendingConfigs) {
|
||||
try {
|
||||
this.logger.log(this.verboseLoggingLevel, "Preparing {} ({})", config, config.getMixinCount());
|
||||
config.initialise(this.hotSwapper);
|
||||
this.logger.log(this.verboseLoggingLevel, "Prepared {} ({})", config, config.getMixinCount());
|
||||
} catch (Exception ex) {
|
||||
this.logger.error("Error encountered whilst initialising mixin config '" + config.getName() + "': " + ex.getMessage(), ex);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user