Fix autogeneration of blasting recipes. Closes #2432
This commit is contained in:
parent
32a24e3291
commit
e81a924459
1 changed files with 2 additions and 2 deletions
|
@ -317,8 +317,8 @@ task github(dependsOn: remapJar) {
|
||||||
}
|
}
|
||||||
github.dependsOn(project(":RebornCore").getTasks().getByName("remapJar"))
|
github.dependsOn(project(":RebornCore").getTasks().getByName("remapJar"))
|
||||||
|
|
||||||
// Generate recipe JSON for similar recipes
|
|
||||||
task compileRecipes {
|
task compileRecipes {
|
||||||
|
description "Generate recipe JSON for similar recipes"
|
||||||
def jsonSlurper = new JsonSlurper()
|
def jsonSlurper = new JsonSlurper()
|
||||||
def recipePath = "build/resources/main/data/techreborn/recipes"
|
def recipePath = "build/resources/main/data/techreborn/recipes"
|
||||||
|
|
||||||
|
@ -328,7 +328,7 @@ task compileRecipes {
|
||||||
doLast {
|
doLast {
|
||||||
// Add any recipe filenames that don't match the regex here
|
// Add any recipe filenames that don't match the regex here
|
||||||
String[] whitelist = []
|
String[] whitelist = []
|
||||||
def pattern = ~'^\\w+_(ingot(_from_dust)?)\\.json$'
|
def pattern = ~'^\\w+_(ingot)\\w*\\.json$'
|
||||||
|
|
||||||
file(smeltingPath).eachFileRecurse(groovy.io.FileType.FILES) {
|
file(smeltingPath).eachFileRecurse(groovy.io.FileType.FILES) {
|
||||||
if (whitelist.contains(it.name) || it.name ==~ pattern) {
|
if (whitelist.contains(it.name) || it.name ==~ pattern) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue