mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-25 12:05:13 +01:00
Potential fix for chisels block-id hack
This commit is contained in:
parent
d63f340fd9
commit
fd109b2407
@ -151,12 +151,13 @@ public void load(File... sources) throws InterruptedException {
|
||||
//load blockstates
|
||||
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