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
@ -151,12 +151,13 @@ public void load(File... sources) throws InterruptedException {
|
|||||||
//load blockstates
|
//load blockstates
|
||||||
String namespace = namespaceRoot.substring("assets/".length());
|
String namespace = namespaceRoot.substring("assets/".length());
|
||||||
Logger.global.logInfo("Loading " + namespace + " assets (" + i + "/" + namespaces.size() + ")...");
|
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) {
|
for (String blockstateFile : blockstateFiles) {
|
||||||
if (Thread.interrupted()) throw new InterruptedException();
|
if (Thread.interrupted()) throw new InterruptedException();
|
||||||
|
|
||||||
String filename = FileAccess.getFileName(blockstateFile);
|
String filename = blockstateFile.substring(blockstatesRootPath.length() + 1);
|
||||||
if (!filename.endsWith(".json")) continue;
|
if (!filename.endsWith(".json")) continue;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user