Skip to content

Commit

Permalink
Show CoT plugins in CT log for better diagnosis
Browse files Browse the repository at this point in the history
Signed-off-by: TheSilkMiner <thesilkminer@outlook.com>
  • Loading branch information
TheSilkMiner committed May 28, 2022
1 parent aa44730 commit 98ef974
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.blamejared.contenttweaker.core.registry.ObjectTypeRegistry;
import com.blamejared.contenttweaker.core.util.FreezableList;
import com.blamejared.contenttweaker.core.util.NonApiCraftTweakerWrapper;
import com.blamejared.crafttweaker.api.CraftTweakerAPI;
import com.blamejared.crafttweaker.api.plugin.IBracketParserRegistrationHandler;
import com.google.common.base.Suppliers;
import com.mojang.datafixers.util.Pair;
Expand Down Expand Up @@ -81,6 +82,7 @@ private DecoratedContentTweakerPlugin initPlugin(final Pair<ResourceLocation, Cl
final ResourceLocation id = data.getFirst();
final ContentTweakerPluginProvider provider = data.getSecond().getConstructor().newInstance();
ContentTweakerCore.LOGGER.info("Successfully identified and loaded plugin {}", id);
CraftTweakerAPI.LOGGER.info("CoT: Successfully identified and loaded ContentTweaker plugin {}", id);
return new DecoratedContentTweakerPlugin(id, provider);
} catch(final InstantiationException | NoSuchMethodException | IllegalAccessException |
InvocationTargetException e) {
Expand Down

0 comments on commit 98ef974

Please sign in to comment.