Remove pointless instance field from GuiSkins

This commit is contained in:
Matthew Messinger 2018-08-21 19:57:28 -04:00
parent fb767c698d
commit ca01b1cd19
3 changed files with 51 additions and 26 deletions

View file

@ -17,20 +17,41 @@ buildscript {
} }
} }
plugins {
id 'org.ajoberstar.grgit' version '1.7.2'
}
apply plugin: 'net.minecraftforge.gradle.liteloader' apply plugin: 'net.minecraftforge.gradle.liteloader'
apply plugin: 'org.spongepowered.mixin' apply plugin: 'org.spongepowered.mixin'
apply plugin: 'com.github.johnrengelman.shadow' apply plugin: 'com.github.johnrengelman.shadow'
ext {
revision = grgit.log().size()
hash = grgit.head().abbreviatedId
if (file('.git/shallow').exists()) {
// don't clone with --depth
revision = -1
hash += " shallow"
}
}
if (project.release != 'RELEASE') {
version += "-${project.release}"
}
if (project.release == 'SNAPSHOT') {
version += "-${project.revision}-${project.hash}"
}
group = 'com.minelittlepony' group = 'com.minelittlepony'
version = '1.12.2.2-SNAPSHOT'
description = 'Mine Little Pony' description = 'Mine Little Pony'
targetCompatibility = 1.8 targetCompatibility = 1.8
sourceCompatibility = 1.8 sourceCompatibility = 1.8
minecraft { minecraft {
version = "1.12.2" version = project.minecraft_version
mappings = 'stable_39' mappings = project.mappings_version
runDir = 'run' runDir = 'run'
replace '@VERSION@', project.version replace '@VERSION@', project.version
} }
@ -52,25 +73,29 @@ dependencies {
transitive = false transitive = false
} }
} }
manifest {
attributes 'Implementation-Version': "${project.version} (git-${project.hash})"
}
litemod { litemod.json {
doFirst {
json {
mcversion = '1.12.r2' mcversion = '1.12.r2'
author = 'Verdana, Rene_Z, Mumfrey, Killjoy1221' displayName = "Mine Little Pony"
author = 'Verdana, Rene_Z, Mumfrey, Killjoy1221, Sollace'
revision = project.revision
description = 'Mine Little Pony turns players and mobs into ponies' description = 'Mine Little Pony turns players and mobs into ponies'
description.minelittlepony = '''\ description.minelittlepony = '''\
Mine Little Pony turns players and mobs into ponies Mine Little Pony turns players and mobs into ponies
Press F9 ingame to access settings''' Press F9 ingame to access settings'''.stripIndent()
description.hdskinsmod = '''\ description.hdskinsmod = '''\
Separate skin server for Mine Little Pony that also supports HD skins. Separate skin server for Mine Little Pony that also supports HD skins.
Access via button on the main menu.''' Access via button on the main menu.'''.stripIndent()
mixinConfigs += [ mixinConfigs += [
'minelp.mixin.json', 'minelp.mixin.json',
'hdskins.mixin.json' 'hdskins.mixin.json'
] ]
} }
} afterEvaluate {
file('build.number').delete()
} }
jar { jar {

View file

@ -1,4 +0,0 @@
#Build Number for ANT. Do not edit!
#Sun Jul 08 20:46:02 CAT 2018
build.number=500
>>>>>>> Build number pls

4
gradle.properties Normal file
View file

@ -0,0 +1,4 @@
version=1.12.2.2
release=SNAPSHOT
minecraft_version=1.12.2
mappings_version=stable_39