Merge pull request #4 from GeyserExtensionists/flipbook-texture

fix bones
This commit is contained in:
zimzaza4
2024-10-30 22:57:17 +08:00
committed by GitHub

View File

@@ -124,7 +124,7 @@ public class RenderController {
JsonObject visibilityItem = new JsonObject(); JsonObject visibilityItem = new JsonObject();
Bone bone = bones.get(boneName); Bone bone = bones.get(boneName);
boolean uvParent = false; boolean uvParent = false;
for (Bone child : bone.children) { for (Bone child : bone.getAllChildren()) {
if (child.getName().startsWith("uv_")) { if (child.getName().startsWith("uv_")) {
if (uvAllBones.contains(child.getName())) { if (uvAllBones.contains(child.getName())) {
uvParent = true; uvParent = true;