Fix style errors.

Sorry player.
This commit is contained in:
modmuss50 2019-11-07 20:39:57 +00:00
parent 12515ed9ee
commit 58e820e06c
2 changed files with 14 additions and 15 deletions

View file

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

View file

@ -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);
}