Skip to content

Commit

Permalink
Ported to 1.15
Browse files Browse the repository at this point in the history
Disabled quark compat for now
  • Loading branch information
uberifix committed Feb 16, 2020
1 parent ca0e8cc commit 64fe51b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'

version = "1.14.4-1.0.0"
version = "1.15.2-1.0.0"
group = "network.pxl8.stonecatalysts"
archivesBaseName = "stonecatalysts"

Expand Down Expand Up @@ -75,9 +75,9 @@ repositories {
}

dependencies {
minecraft 'net.minecraftforge:forge:1.14.4-28.2.0'
minecraft 'net.minecraftforge:forge:1.15.2-31.1.12'

compileOnly "quark:Quark:r2.0:210"
//compileOnly "quark:Quark:r2.0:210"
}

jar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,5 @@ public StoneCatalysts() {
Configuration.loadConfig(Configuration.COMMON_CONFIG, FMLPaths.CONFIGDIR.get().resolve("stonecatalysts-common.toml"));
}

private void setup(final FMLCommonSetupEvent event) {
LibMeta.LOG.debug("StoneCatalysts");
}
private void setup(final FMLCommonSetupEvent event) { }
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ private static void setupBaseConfig() {
}

private static void setupCompatConfig() {
ENABLE_QUARK_COMPAT = COMMON_BUILDER.comment("Adds quark stones (Basalt, Marble, Limestone, Slate, Jasper) as catalysts")
.define("ENABLE_QUARK_COMPAT", true);
//ENABLE_QUARK_COMPAT = COMMON_BUILDER.comment("Adds quark stones (Basalt, Marble, Limestone, Slate, Jasper) as catalysts")
// .define("ENABLE_QUARK_COMPAT", true);
COMMON_BUILDER.pop();
}

Expand Down
18 changes: 8 additions & 10 deletions src/main/java/network/pxl8/stonecatalysts/event/StoneGen.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
import net.minecraft.util.math.BlockPos;
import net.minecraftforge.event.world.BlockEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.ModList;
import net.minecraftforge.fml.common.Mod;
import network.pxl8.stonecatalysts.config.Configuration;
import network.pxl8.stonecatalysts.lib.LibMeta;
import vazkii.quark.world.module.NewStoneTypesModule;
//import vazkii.quark.world.module.NewStoneTypesModule;


@Mod.EventBusSubscriber
Expand Down Expand Up @@ -43,12 +41,12 @@ private static void doReplacements(BlockEvent.FluidPlaceBlockEvent event, BlockS
replaceBlock(event, catalyst, Blocks.DIORITE.getDefaultState());
replaceBlock(event, catalyst, Blocks.ANDESITE.getDefaultState());

if(ModList.get().isLoaded("quark") && Configuration.ENABLE_QUARK_COMPAT.get()) {
replaceBlock(event, catalyst, NewStoneTypesModule.marbleBlock.getDefaultState());
replaceBlock(event, catalyst, NewStoneTypesModule.limestoneBlock.getDefaultState());
replaceBlock(event, catalyst, NewStoneTypesModule.jasperBlock.getDefaultState());
replaceBlock(event, catalyst, NewStoneTypesModule.slateBlock.getDefaultState());
replaceBlock(event, catalyst, NewStoneTypesModule.basaltBlock.getDefaultState());
}
//if(ModList.get().isLoaded("quark") && Configuration.ENABLE_QUARK_COMPAT.get()) {
// replaceBlock(event, catalyst, NewStoneTypesModule.marbleBlock.getDefaultState());
// replaceBlock(event, catalyst, NewStoneTypesModule.limestoneBlock.getDefaultState());
// replaceBlock(event, catalyst, NewStoneTypesModule.jasperBlock.getDefaultState());
// replaceBlock(event, catalyst, NewStoneTypesModule.slateBlock.getDefaultState());
// replaceBlock(event, catalyst, NewStoneTypesModule.basaltBlock.getDefaultState());
//}
}
}

0 comments on commit 64fe51b

Please sign in to comment.