mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-29 05:55:57 +01:00
Potential fix for chisels block-id hack
This commit is contained in:
parent
d63f340fd9
commit
fd109b2407
@ -152,11 +152,12 @@ public void load(File... sources) throws InterruptedException {
|
||||
String namespace = namespaceRoot.substring("assets/".length());
|
||||
Logger.global.logInfo("Loading " + namespace + " assets (" + i + "/" + namespaces.size() + ")...");
|
||||
|
||||
Collection<String> blockstateFiles = sourcesAccess.listFiles(namespaceRoot + "/blockstates", true);
|
||||
String blockstatesRootPath = namespaceRoot + "/blockstates";
|
||||
Collection<String> blockstateFiles = sourcesAccess.listFiles(blockstatesRootPath, true);
|
||||
for (String blockstateFile : blockstateFiles) {
|
||||
if (Thread.interrupted()) throw new InterruptedException();
|
||||
|
||||
String filename = FileAccess.getFileName(blockstateFile);
|
||||
String filename = blockstateFile.substring(blockstatesRootPath.length() + 1);
|
||||
if (!filename.endsWith(".json")) continue;
|
||||
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user