Data fixer enhancements, new textures

This commit is contained in:
paulevsGitch 2021-03-13 17:00:52 +03:00
parent 2aa08604bd
commit 24280e7649
11 changed files with 7 additions and 6 deletions

View file

@ -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];