1.14.2 and build tweaks

This commit is contained in:
Matthew Messinger 2019-06-01 15:40:06 -04:00
parent a0ed709d18
commit cea3e11f05
5 changed files with 35 additions and 44 deletions

View file

@ -1,34 +1,9 @@
// Frabric build script plugins {
// 24/05/2019 id 'fabric-loom' version '0.2.2-SNAPSHOT'
// https://github.com/FabricMC/fabric-example-mod/blob/master/build.gradle id 'org.ajoberstar.grgit' version '3.1.1'
id 'com.github.johnrengelman.plugin-shadow' version '2.0.3'
buildscript {
repositories {
jcenter()
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
gradlePluginPortal()
}
dependencies {
classpath 'fabric-loom:fabric-loom.gradle.plugin:0.2.2-SNAPSHOT'
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4'
classpath 'org.ajoberstar.grgit:grgit-gradle:3.1.1'
}
} }
repositories {
maven {
name = 'Jit'
url = 'https://jitpack.io'
}
}
apply plugin: 'fabric-loom'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'org.ajoberstar.grgit'
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_1_8
@ -57,6 +32,13 @@ group = project.group
description = project.displayname description = project.displayname
archivesBaseName = project.name archivesBaseName = project.name
repositories {
maven {
name = 'Jit'
url = 'https://jitpack.io'
}
}
dependencies { dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}" minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}" mappings "net.fabricmc:yarn:${project.yarn_mappings}"
@ -67,7 +49,7 @@ dependencies {
modCompile "com.github.MineLittlePony:Kirin:${project.kirin_version}" modCompile "com.github.MineLittlePony:Kirin:${project.kirin_version}"
include "com.github.MineLittlePony:Kirin:${project.kirin_version}" include "com.github.MineLittlePony:Kirin:${project.kirin_version}"
// TODO: HD Skins can be made optional later // TODO: HD Skins can be made optional later
modCompile "com.github.MineLittlePony:HDSkins:${project.hd_skins_version}" modCompile "com.github.MineLittlePony:HDSkins:${project.hd_skins_version}"
include "com.github.MineLittlePony:HDSkins:${project.hd_skins_version}" include "com.github.MineLittlePony:HDSkins:${project.hd_skins_version}"
@ -84,6 +66,7 @@ processResources {
from(sourceSets.main.resources.srcDirs) { from(sourceSets.main.resources.srcDirs) {
exclude "fabric.mod.json" exclude "fabric.mod.json"
} }
from 'LICENSE'
} }
tasks.withType(JavaCompile) { tasks.withType(JavaCompile) {
@ -96,10 +79,6 @@ task sourcesJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allSource from sourceSets.main.allSource
} }
jar {
from "LICENSE"
}
// //
// Imports the Background Ponies from the MLP Community Skin Pack // Imports the Background Ponies from the MLP Community Skin Pack
// //

View file

@ -3,9 +3,10 @@ org.gradle.daemon=false
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/use # check these on https://fabricmc.net/use
minecraft_version=1.14.1 minecraft_version=1.14.2
yarn_mappings=1.14.1+build.5 # probably best not to auto-update this
loader_version=0.4.7+build.147 yarn_mappings=1.14.2+build.2
loader_version=0.4.8+
# Mod Properties # Mod Properties
group=com.minelittlepony group=com.minelittlepony
@ -16,7 +17,6 @@ org.gradle.daemon=false
release=SNAPSHOT release=SNAPSHOT
# Dependencies # Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric fabric_version=0.3.0+
fabric_version=0.3.0-pre+build.156 kirin_version=57995a8ac5
kirin_version=09d9d6ddf2 hd_skins_version=d77033e898
hd_skins_version=2e276b94cf

View file

@ -1 +1,13 @@
pluginManagement {
repositories {
jcenter()
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
gradlePluginPortal()
}
}
rootProject.name = 'MineLittlePony' rootProject.name = 'MineLittlePony'
//includeBuild '../Kirin'
//includeBuild '../HDSkins'

View file

@ -8,7 +8,7 @@ import com.minelittlepony.settings.PonyConfig;
import net.minecraft.ChatFormat; import net.minecraft.ChatFormat;
import net.minecraft.client.MinecraftClient; import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.MainMenuScreen; import net.minecraft.client.gui.screen.TitleScreen;
import net.minecraft.client.options.KeyBinding; import net.minecraft.client.options.KeyBinding;
import net.minecraft.client.render.entity.EntityRenderDispatcher; import net.minecraft.client.render.entity.EntityRenderDispatcher;
import net.minecraft.client.util.InputUtil; import net.minecraft.client.util.InputUtil;
@ -66,7 +66,7 @@ public class MineLPClient extends MineLittlePony {
inGame &= minecraft.currentScreen == null; inGame &= minecraft.currentScreen == null;
boolean mainMenu = minecraft.currentScreen instanceof MainMenuScreen; boolean mainMenu = minecraft.currentScreen instanceof TitleScreen;
if (!inGame && mainMenu) { if (!inGame && mainMenu) {
KeyBinding.updatePressedStates(); KeyBinding.updatePressedStates();

View file

@ -1,7 +1,7 @@
package com.minelittlepony.client.gui; package com.minelittlepony.client.gui;
import net.minecraft.client.gui.Element; import net.minecraft.client.gui.Element;
import net.minecraft.client.gui.Screen; import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.resource.language.I18n; import net.minecraft.client.resource.language.I18n;
import net.minecraft.network.chat.TranslatableComponent; import net.minecraft.network.chat.TranslatableComponent;