package net.darkhax.gamestages.addons.crt;

import com.blamejared.crafttweaker.impl.commands.script_examples.ExampleCollectionEvent;

import net.darkhax.gamestages.GameStages;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;

@EventBusSubscriber
public class CraftTweakerEventSubscription {
    
    @SubscribeEvent
    public static void addExampleScriptFiles (ExampleCollectionEvent event) {
        
        event.addResource(new ResourceLocation(GameStages.MOD_ID, "gamestages/stage_on_join"));
    }
}
package net.darkhax.gamestages.addons.crt;

import com.blamejared.crafttweaker.impl.commands.script_examples.ExampleCollectionEvent;

import net.darkhax.gamestages.GameStages;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;

public class CraftTweakerEventSubscription {
    
    @SubscribeEvent
    public static void addExampleScriptFiles (ExampleCollectionEvent event) {
        
        event.addResource(new ResourceLocation(GameStages.MOD_ID, "gamestages/stage_on_join"));
    }
}
Fix Forge trying to load CraftTweaker support even when CraftTweaker is missing.
Fix Forge trying to load CraftTweaker support even when CraftTweaker is missing.
