Skip to content

Commit dc621a6

Browse files
committed
Fixed item texture generation
1 parent 63b9560 commit dc621a6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/java/xyz/prismenetwork/kelpmodloader/Pack/CreatePack.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public static void Create() throws IOException {
2525
File ModelsFolder = Path.of(path + "/pack/assets/minecraft/models").toFile();
2626
File ItemModelsFolder = Path.of(path + "/pack/assets/minecraft/models/item").toFile();
2727
File BlockModelsFolder = Path.of(path + "/pack/assets/minecraft/models/block").toFile();
28+
2829
CreateFileIfNotExiste(PluginFolder ,PackFolder, AssetFolder, MinecraftFolder, BlockStateFolder, TexturesFolder, BlockFolder, ModelsFolder, ItemModelsFolder, BlockModelsFolder);
2930

3031
InputStream meta = KelpModLoader.class.getResourceAsStream("/Pack/pack.mcmeta");

src/main/java/xyz/prismenetwork/kelpmodloader/Pack/GenerateTexture.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public void generate(File TextureFolder) {
1717

1818
File TextureTypeFolder = new File(TextureFolder.getPath() + "/" + t.textureType.getType());
1919
if (!TextureTypeFolder.exists()) {
20-
TextureTypeFolder.createNewFile();
20+
TextureTypeFolder.mkdir();
2121
}
2222

2323
String path = TextureFolder.getPath() + "/" + t.textureType.getType() + "/kml_" + t.name + ".png";

0 commit comments

Comments
 (0)