Data fixer enhancements, new textures
This commit is contained in:
parent
2aa08604bd
commit
24280e7649
11 changed files with 7 additions and 6 deletions
|
@ -19,12 +19,16 @@ public class DataFixerUtil {
|
|||
private static final Map<String, String> REPLACEMENT = Maps.newHashMap();
|
||||
|
||||
public static void init() {
|
||||
addFix("minecraft:stone", "minecraft:glowstone");
|
||||
//addFix("minecraft:stone", "minecraft:glowstone"); // Example
|
||||
}
|
||||
|
||||
public static void fixData(File dir) {
|
||||
if (REPLACEMENT.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
List<File> regions = getAllRegions(dir, null);
|
||||
regions.forEach((file) -> {
|
||||
regions.parallelStream().forEach((file) -> {
|
||||
try {
|
||||
System.out.println("Fixing " + file);
|
||||
boolean[] changed = new boolean[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue