forked from FabricMC/fabric
Fix style errors.
Sorry player.
This commit is contained in:
parent
12515ed9ee
commit
58e820e06c
2 changed files with 14 additions and 15 deletions
|
@ -28,7 +28,6 @@ import net.minecraft.block.Block;
|
|||
import net.minecraft.client.render.RenderLayer;
|
||||
import net.minecraft.client.render.RenderLayers;
|
||||
import net.minecraft.fluid.Fluid;
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
import net.fabricmc.fabric.impl.blockrenderlayer.BlockRenderLayerMapImpl;
|
||||
|
||||
|
|
|
@ -140,20 +140,20 @@ public class ModNioResourcePack extends AbstractFileResourcePack implements ModR
|
|||
if (Files.exists(searchPath)) {
|
||||
try {
|
||||
Files.walk(searchPath, depth)
|
||||
.filter(Files::isRegularFile)
|
||||
.filter((p) -> {
|
||||
String filename = p.getFileName().toString();
|
||||
return !filename.endsWith(".mcmeta") && predicate.test(filename);
|
||||
})
|
||||
.map(namespacePath::relativize)
|
||||
.map((p) -> p.toString().replace(separator, "/"))
|
||||
.forEach((s) -> {
|
||||
try {
|
||||
ids.add(new Identifier(namespace, s));
|
||||
} catch (InvalidIdentifierException e) {
|
||||
LOGGER.error(e.getMessage());
|
||||
}
|
||||
});
|
||||
.filter(Files::isRegularFile)
|
||||
.filter((p) -> {
|
||||
String filename = p.getFileName().toString();
|
||||
return !filename.endsWith(".mcmeta") && predicate.test(filename);
|
||||
})
|
||||
.map(namespacePath::relativize)
|
||||
.map((p) -> p.toString().replace(separator, "/"))
|
||||
.forEach((s) -> {
|
||||
try {
|
||||
ids.add(new Identifier(namespace, s));
|
||||
} catch (InvalidIdentifierException e) {
|
||||
LOGGER.error(e.getMessage());
|
||||
}
|
||||
});
|
||||
} catch (IOException e) {
|
||||
LOGGER.warn("findResources at " + path + " in namespace " + namespace + ", mod " + modInfo.getId() + " failed!", e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue