Skip to content

Commit cbf389e

Browse files
authored
fix: Update to 1.21.11 and fix issue with item atlas (#66)
1 parent 3c46664 commit cbf389e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
java = "25"
33
junit = "6.0.0-M2"
4-
minestom = "2025.10.11-1.21.10"
4+
minestom = "2025.12.20-1.21.11"
55
commons-io = "2.20.0"
66
zt-zip = "1.17"
77
javax-json = "1.1.4"

src/main/java/net/worldseed/resourcepack/PackBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static ConfigJson generate(Path bbmodel, Path resourcepack, Path modelDat
3535

3636
List<Model> entityModels = recursiveFileSearch(bbmodel, bbmodel, additionalStateFiles);
3737

38-
Path texturePathMobs = resourcepack.resolve("assets/worldseed/textures/mobs/");
38+
Path texturePathMobs = resourcepack.resolve("assets/worldseed/textures/item/");
3939
Path modelPathMobs = resourcepack.resolve("assets/worldseed/models/mobs/");
4040
Path baseModelPath = resourcepack.resolve("assets/minecraft/items/");
4141

src/main/java/net/worldseed/resourcepack/multipart/parser/ModelParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ private static ModelFile generateModelFile(TextureState state, ModelGenerator.BB
249249

250250
JsonObjectBuilder modelTextureJson = Json.createObjectBuilder();
251251
for (Map.Entry<String, TextureGenerator.TextureData> t : bbModel.textures().entrySet()) {
252-
modelTextureJson.add(t.getKey(), "worldseed:mobs/" + bbModel.id() + "/" + state.name() + "/" + t.getKey());
252+
modelTextureJson.add(t.getKey(), "worldseed:item/" + bbModel.id() + "/" + state.name() + "/" + t.getKey());
253253

254254
byte[] textureByte = t.getValue().value();
255255
BufferedImage texture = ImageIO.read(new BufferedInputStream(new ByteArrayInputStream(textureByte)));
@@ -328,7 +328,7 @@ private static List<ModelFile> createFiles(ModelGenerator.BBEntityModel bbModel,
328328
JsonObjectBuilder modelTextureJson = Json.createObjectBuilder();
329329

330330
for (var t : modelFile.textures.keySet()) {
331-
modelTextureJson.add(t, "worldseed:mobs/" + bbModel.id() + "/" + state.name + "/" + subBone.getValue());
331+
modelTextureJson.add(t, "worldseed:item/" + bbModel.id() + "/" + state.name + "/" + subBone.getValue());
332332
}
333333

334334
var subbones = bones.stream()

0 commit comments

Comments
 (0)