Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void preInit(FMLPreInitializationEvent event) {
- boolean DRM = false;
- if (Loader.isModLoaded("gregtech_addon")) {
- DRM = true;
- }
- if (Loader.isModLoaded("BuildCraft")) {
- DRM = true;
- }
- if (Loader.isModLoaded("TwilightForest")) {
- DRM = true;
- }
- if (Loader.isModLoaded("RotaryCraft")) {
- DRM = true;
- }
- if (Loader.isModLoaded("Forestry")) {
- DRM = true;
- }
- if (Loader.isModLoaded("MineFactoryReloaded")) {
- DRM = true;
- }
- if (Loader.isModLoaded("ReactorCraft")) {
- DRM = true;
- }
- if (Loader.isModLoaded("Railcraft")) {
- DRM = true;
- }
- if (Loader.isModLoaded("DyeTrees")) {
- DRM = true;
- }
- if (Loader.isModLoaded("GeoStrata")) {
- DRM = true;
- }
- if (Loader.isModLoaded("CaveControl")) {
- DRM = true;
- }
- if (Loader.isModLoaded("EnderForest")) {
- DRM = true;
- }
- if (Loader.isModLoaded("ExpandedRedstone")) {
- DRM = true;
- }
- if (Loader.isModLoaded("ComputerCraft")) {
- DRM = true;
- }
- if (Loader.isModLoaded("MeteorCraft")) {
- DRM = true;
- }
- if (Loader.isModLoaded("ElectriCraft")) {
- DRM = true;
- }
- if (DRM) {
- System.out.println("You have some mods with DRM, you must remove these to continue");
- System.exit(0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement