mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-16 17:44:23 +01:00
Use the existing json files (probably breaks gradle)
This commit is contained in:
parent
d91e1d687f
commit
30e3d8ebb5
2 changed files with 2 additions and 27 deletions
27
build.gradle
27
build.gradle
|
@ -115,10 +115,9 @@ task copyBGPones(type: Copy) {
|
||||||
def illegals = /[^a-z0-9_\/.-]/
|
def illegals = /[^a-z0-9_\/.-]/
|
||||||
|
|
||||||
from "skins/Background Ponies"
|
from "skins/Background Ponies"
|
||||||
|
// TODO: What is tempDir????
|
||||||
into temporaryDir
|
into temporaryDir
|
||||||
|
|
||||||
include '**/*.png'
|
|
||||||
|
|
||||||
eachFile {
|
eachFile {
|
||||||
if (it.name =~ illegals){
|
if (it.name =~ illegals){
|
||||||
logger.warn("Sanitizing file with illegal characters: ${it.path}")
|
logger.warn("Sanitizing file with illegal characters: ${it.path}")
|
||||||
|
@ -127,27 +126,6 @@ task copyBGPones(type: Copy) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
import groovy.json.JsonBuilder
|
|
||||||
|
|
||||||
task genPoniesJson(dependsOn: copyBGPones) {
|
|
||||||
// loop through the background ponies to create the bgponies.json
|
|
||||||
|
|
||||||
def bgponies = 'bgponies.json'
|
|
||||||
|
|
||||||
def json = file("$temporaryDir/$bgponies")
|
|
||||||
|
|
||||||
inputs.dir copyBGPones.outputs
|
|
||||||
outputs.file json
|
|
||||||
|
|
||||||
doFirst {
|
|
||||||
json.text = new JsonBuilder(
|
|
||||||
override: false,
|
|
||||||
imports: [],
|
|
||||||
ponies: fileTree(copyBGPones.outputs.files.singleFile).filter { it.file }.collect { it.name.replace(".png", "") }
|
|
||||||
).toPrettyString()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
extension 'litemod'
|
extension 'litemod'
|
||||||
classifier "mc$minecraft.version"
|
classifier "mc$minecraft.version"
|
||||||
|
@ -159,9 +137,6 @@ shadowJar {
|
||||||
from(copyBGPones) {
|
from(copyBGPones) {
|
||||||
into "/assets/minelittlepony/textures/entity/pony"
|
into "/assets/minelittlepony/textures/entity/pony"
|
||||||
}
|
}
|
||||||
from (genPoniesJson){
|
|
||||||
into "/assets/minelittlepony/textures/entity/pony"
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
exclude dependency('deobf.com.mumfrey:liteloader:')
|
exclude dependency('deobf.com.mumfrey:liteloader:')
|
||||||
|
|
2
skins
2
skins
|
@ -1 +1 @@
|
||||||
Subproject commit e1d59da0684e8f82cd4422338efbe5b58b8f80ae
|
Subproject commit 288d9e1697f9b7c7bfb0795f7cafa5bd583f8748
|
Loading…
Reference in a new issue