Skip to content

Commit

Permalink
Fix crash with Quark
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan19 committed Dec 2, 2019
1 parent 43dff8f commit c00fcfd
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 10 deletions.
34 changes: 26 additions & 8 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 = '0.4.6'
version = '0.4.7'
group = 'com.alan199921.astral' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'astral'

Expand Down Expand Up @@ -71,18 +71,36 @@ minecraft {

dependencies {
minecraft 'net.minecraftforge:forge:1.14.4-28.1.96'
compile fg.deobf("vazkii.arl:AutoRegLib:1.4-35.69")
compile fg.deobf("vazkii.quark:Quark:r2.0-200.835")

compileOnly fg.deobf("mezz.jei:jei-1.14.4:6.0.0.18:api")
runtimeOnly fg.deobf("mezz.jei:jei-1.14.4:6.0.0.18")
}

repositories {
maven {
// for AutoRegLib
name "blamejared"
url "http://maven.blamejared.com/"
}
maven {
// for JEI
name "progwml6"
url "http://dvs1.progwml6.com/files/maven"
}
}

jar {
manifest {
attributes([
"Specification-Title": "astral",
"Specification-Vendor": "minerarcana",
"Specification-Version": "1", // We are version 1 of ourselves
"Implementation-Title": project.name,
"Implementation-Version": "${version}",
"Implementation-Vendor" :"minerarcana",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
"Specification-Title" : "astral",
"Specification-Vendor" : "minerarcana",
"Specification-Version" : "1", // We are version 1 of ourselves
"Implementation-Title" : project.name,
"Implementation-Version" : "${version}",
"Implementation-Vendor" : "minerarcana",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
Expand Down
Empty file added build.properties
Empty file.
1 change: 0 additions & 1 deletion src/main/java/com/alan199921/astral/Astral.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public Astral() {
ModLoadingContext modLoadingContext = ModLoadingContext.get();
modLoadingContext.registerConfig(ModConfig.Type.COMMON, AstralConfig.initialize());
AstralConfig.loadConfig(AstralConfig.getInstance().getSpec(), FMLPaths.CONFIGDIR.get().resolve("astral-common.toml"));

}

private void setup(final FMLCommonSetupEvent event) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
public class AstralEffects {

/*
Instantiation is required for it to not crash with Quark since effects are registered after items and the effect
on Travelling Medicine would be null
*/
@ObjectHolder("astral:astral_travel")
public static final Effect astralTravelEffect = null;
public static final Effect astralTravelEffect = new AstralTravelEffect();


@SubscribeEvent
Expand Down

0 comments on commit c00fcfd

Please sign in to comment.