mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 05:48:00 +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_\/.-]/
|
||||
|
||||
from "skins/Background Ponies"
|
||||
// TODO: What is tempDir????
|
||||
into temporaryDir
|
||||
|
||||
include '**/*.png'
|
||||
|
||||
eachFile {
|
||||
if (it.name =~ illegals){
|
||||
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 {
|
||||
extension 'litemod'
|
||||
classifier "mc$minecraft.version"
|
||||
|
@ -159,9 +137,6 @@ shadowJar {
|
|||
from(copyBGPones) {
|
||||
into "/assets/minelittlepony/textures/entity/pony"
|
||||
}
|
||||
from (genPoniesJson){
|
||||
into "/assets/minelittlepony/textures/entity/pony"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
exclude dependency('deobf.com.mumfrey:liteloader:')
|
||||
|
|
2
skins
2
skins
|
@ -1 +1 @@
|
|||
Subproject commit e1d59da0684e8f82cd4422338efbe5b58b8f80ae
|
||||
Subproject commit 288d9e1697f9b7c7bfb0795f7cafa5bd583f8748
|
Loading…
Reference in a new issue