Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
FluffyJenkins committed Jan 17, 2024
1 parent 7e5d475 commit 6bb5cdb
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.spongepowered.asm.mixin.Mixins;
import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin;
import org.spongepowered.asm.mixin.extensibility.IMixinInfo;
import org.spongepowered.asm.service.MixinService;
import org.valkyrienskies.mod.compat.VSRenderer;

/**
Expand Down Expand Up @@ -74,7 +75,12 @@ public boolean shouldApplyMixin(final String s, final String mixinClassName) {
}
if (mixinClassName.contains("org.valkyrienskies.mod.mixin.mod_compat.create.client.trackOutlines")) {
//interactive has its own track outline stuff so disable fixed version of VS2's track outline stuff
return !classExists("org.valkyrienskies.create_interactive.mixin.client.MixinTrackBlockOutline");
if (classExists("org.valkyrienskies.create_interactive.mixin.client.MixinTrackBlockOutline")) {
MixinService.getService().getLogger("mixin")
.info("[VS2] found Interactive, disabling VS2's trackOutline Compat - " +
mixinClassName.substring(mixinClassName.lastIndexOf(".") + 1));
return false;
}
}

return true;
Expand Down

0 comments on commit 6bb5cdb

Please sign in to comment.