Move hdskins back to main

It wasn't going to stay there because loom doesn't support arbitrary mod configurations
This commit is contained in:
Matthew Messinger 2019-07-03 23:40:56 -04:00
parent 1cdc9582e3
commit 460e8c56b4
12 changed files with 10 additions and 16 deletions

View file

@ -39,27 +39,21 @@ if (System.env.CI) {
}
}
sourceSets {
hdskins
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}"
modCompile "net.fabricmc:fabric-loader:${project.loader_version}"
modApi "net.fabricmc:fabric-loader:${project.loader_version}"
compileOnly "com.google.code.findbugs:jsr305:3.0.2"
hdskinsCompileOnly "com.google.code.findbugs:jsr305:3.0.2"
modApi "net.fabricmc.fabric-api:fabric-api-base:0.1.0+"
modApi "net.fabricmc.fabric-api:fabric-events-lifecycle-v0:0.1.0+"
modApi "net.fabricmc.fabric-api:fabric-resource-loader-v0:0.1.0+"
compile "com.minelittlepony:Kirin:${project.kirin_version}"
modCompile "com.minelittlepony:Kirin:${project.kirin_version}"
include "com.minelittlepony:Kirin:${project.kirin_version}"
hdskinsCompile sourceSets.main.output
hdskinsCompile "com.minelittlepony:HDSkins:${project.hd_skins_version}"
modImplementation "com.minelittlepony:HDSkins:${project.hd_skins_version}"
}
//

View file

@ -9,5 +9,5 @@ pluginManagement {
}
}
rootProject.name = 'MineLittlePony'
includeBuild '../Kirin'
includeBuild '../HDSkins'
//includeBuild '../Kirin'
//includeBuild '../HDSkins'

View file

@ -4,7 +4,7 @@ import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.event.client.ClientTickCallback;
import net.fabricmc.loader.api.FabricLoader;
import com.minelittlepony.client.gui.hdskins.IndirectHDSkins;
import com.minelittlepony.client.hdskins.IndirectHDSkins;
public class FabMod implements ClientModInitializer {

View file

@ -7,7 +7,7 @@ import com.mojang.authlib.GameProfile;
import com.mojang.authlib.minecraft.MinecraftProfileTexture;
import net.minecraft.util.Identifier;
public class HDSkinsProxy extends SkinsProxy {
class HDSkinsProxy extends SkinsProxy {
@Override
public Identifier getSkinTexture(GameProfile profile) {

View file

@ -1,11 +1,11 @@
package com.minelittlepony.client.gui.hdskins;
package com.minelittlepony.client.hdskins;
import org.apache.logging.log4j.LogManager;
public final class IndirectHDSkins {
public static void initialize() {
try {
Class.forName("com.minelittlepony.client.hdskins.MineLPHDSkins").getConstructor().newInstance();
new MineLPHDSkins();
} catch (Exception e) {
LogManager.getLogger().warn("Failed to initialize hooks for hdskins", e);
}

View file

@ -18,7 +18,7 @@ import com.minelittlepony.hdskins.net.ValhallaSkinServer;
/**
* All the interactions with HD Skins.
*/
public class MineLPHDSkins {
class MineLPHDSkins {
private static final String MINELP_VALHALLA_SERVER = "http://skins.minelittlepony-mod.com";
private static final String MINELP_LEGACY_SERVER = "http://minelpskins.voxelmodpack.com";