mirror of
https://github.com/GeyserMC/Rainbow.git
synced 2025-12-19 14:59:16 +00:00
Fix 3D icon inclusion in pack.zip, use right head animation identifier
This commit is contained in:
@@ -48,6 +48,6 @@ public class AnimationMapper {
|
||||
.withAnimation(identifier + ".head", BedrockAnimation.animation()
|
||||
.withLoopMode(BedrockAnimation.LoopMode.LOOP)
|
||||
.withBone(bone, headPosition, headRotation, headScale))
|
||||
.build(), "animation." + identifier + ".hold_first_person", "animation." + identifier + ".hold_third_person", identifier + ".head");
|
||||
.build(), "animation." + identifier + ".hold_first_person", "animation." + identifier + ".hold_third_person", "animation." + identifier + ".head");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,17 +134,17 @@ public class BedrockPack {
|
||||
futures.add(item.save(serializer, paths.attachables(), paths.geometry(), paths.animation(), textureSaver));
|
||||
}
|
||||
|
||||
if (paths.zipOutput().isPresent()) {
|
||||
RainbowIO.safeIO(() -> CodecUtil.tryZipDirectory(paths.packRoot(), paths.zipOutput().get()));
|
||||
}
|
||||
|
||||
if (reporter instanceof AutoCloseable closeable) {
|
||||
try {
|
||||
closeable.close();
|
||||
} catch (Exception ignored) {}
|
||||
}
|
||||
|
||||
return CompletableFuture.allOf(futures.toArray(CompletableFuture[]::new));
|
||||
CompletableFuture<?> packSerializingFinished = CompletableFuture.allOf(futures.toArray(CompletableFuture[]::new));
|
||||
if (paths.zipOutput().isPresent()) {
|
||||
return packSerializingFinished.thenAcceptAsync(object -> RainbowIO.safeIO(() -> CodecUtil.tryZipDirectory(paths.packRoot(), paths.zipOutput().get())));
|
||||
}
|
||||
return packSerializingFinished;
|
||||
}
|
||||
|
||||
public int getMappings() {
|
||||
|
||||
Reference in New Issue
Block a user