This commit is contained in:
Sollace 2018-11-05 16:49:42 +02:00
parent 6b99c307dd
commit 4afbf7abb3

View file

@ -113,8 +113,8 @@ archivesBaseName = "mod-${project.name.toLowerCase()}"
task copyBGPones(type: Copy) {
delete "${buildDir}/skins/assets/minelittlepony/textures/entity/pony"
// use the same rejex for both filenames and the bgponies.json
// Otherwise there could be errors because of the names in the json not matching the ones on disk
// use the same rejex for both filenames and the bgponies.json
// Otherwise there could be errors because of the names in the json not matching the ones on disk
def permittedChars = /[^0-9a-z_-\",\t\{\}\[\]\(\):\'\.\/ ]/
from("skins/Background Ponies") {
@ -131,7 +131,7 @@ task copyBGPones(type: Copy) {
filter { line ->
line.toLowerCase()
.replaceAll(permittedCharsJSON, '')
.replaceAll(permittedChars, '')
}
}