From be7a696f1ed6a6e9fc902fd4599dbc9ce71c466c Mon Sep 17 00:00:00 2001 From: Anthony Hilyard Date: Wed, 29 Dec 2021 13:11:42 -0800 Subject: Fixed a mod load order crash bug. --- build.gradle | 12 ++++++------ gradle.properties | 2 +- .../java/com/anthonyhilyard/iceberg/mixin/EntityMixin.java | 4 +--- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index 32990d9..3d2b6d9 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ buildscript { repositories { - maven { url = 'https://files.minecraftforge.net/maven' } - maven { url = "https://repo.spongepowered.org/maven" } + maven { url = 'https://maven.minecraftforge.net' } + maven { url = 'https://repo.spongepowered.org/maven' } jcenter() mavenCentral() } @@ -34,9 +34,9 @@ minecraft { workingDirectory project.file('run').canonicalPath source sourceSets.main - arg "-mixin.debug=true" - arg "-mixin.checks.interfaces=true" - arg "-mixin.config=${project.name}.mixins.json".toLowerCase() + property 'mixin.debug', 'true' + property 'mixin.checks.interfaces', 'true' + property 'mixin.config', "${project.name}.mixins.json".toLowerCase() } } } @@ -51,7 +51,7 @@ sourceSets { dependencies { minecraft "net.minecraftforge:forge:${project.mcVersion}-${project.forgeVersion}" - annotationProcessor 'org.spongepowered:mixin:0.8.4:processor' + annotationProcessor 'org.spongepowered:mixin:0.8.5:processor' } jar { diff --git a/gradle.properties b/gradle.properties index 11cb639..f213ef1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,6 +6,6 @@ org.gradle.daemon=false name=${rootProject.name} group=com.anthonyhilyard.${name.toLowerCase()} author=anthonyhilyard -version=1.0.30 +version=1.0.31 mcVersion=1.18.1 forgeVersion=39.0.0 diff --git a/src/main/java/com/anthonyhilyard/iceberg/mixin/EntityMixin.java b/src/main/java/com/anthonyhilyard/iceberg/mixin/EntityMixin.java index ba3a69e..8c03e8b 100644 --- a/src/main/java/com/anthonyhilyard/iceberg/mixin/EntityMixin.java +++ b/src/main/java/com/anthonyhilyard/iceberg/mixin/EntityMixin.java @@ -17,15 +17,13 @@ import net.minecraft.tags.Tag; import net.minecraftforge.common.MinecraftForge; @Mixin(Entity.class) -public class EntityMixin extends net.minecraftforge.common.capabilities.CapabilityProvider +public class EntityMixin { private Fluid previousFluidOnEyes = null; @Shadow protected Tag fluidOnEyes; - protected EntityMixin(Class baseClass) { super(baseClass); } - @Inject(method = "updateFluidOnEyes", at = @At(value = "RETURN")) public void onUpdateFluidOnEyes(CallbackInfo callbackInfo) { -- cgit