调整夕雾花渲染

This commit is contained in:
17146 2025-06-03 16:19:34 +08:00 committed by Light_Quanta
parent e519f1fa7c
commit ba553a76d0
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -60,7 +60,7 @@ public class TracheliumItemRenderer extends CustomGunRenderer<Trachelium> {
}
}
if (this.renderPerspective == ItemDisplayContext.FIRST_PERSON_RIGHT_HAND) {
if (this.renderPerspective == ItemDisplayContext.FIRST_PERSON_RIGHT_HAND || this.renderPerspective == ItemDisplayContext.THIRD_PERSON_RIGHT_HAND) {
if (name.equals("humu")) {
bone.setHidden(GunData.from(itemStack).attachment.get(AttachmentType.SCOPE) == 0 && GunData.from(itemStack).attachment.get(AttachmentType.GRIP) == 0);
}
@ -80,6 +80,11 @@ public class TracheliumItemRenderer extends CustomGunRenderer<Trachelium> {
if (GunData.from(itemStack).attachment.get(AttachmentType.SCOPE) == 2 && !NBTTool.getTag(itemStack).getBoolean("ScopeAlt") && (name.equals("hidden"))) {
bone.setHidden(ClientEventHandler.zoomPos > 0.7 && ClientEventHandler.zoom);
}
} else {
ItemModelHelper.hideAllAttachments(bone, name);
if (name.equals("humu") || name.equals("qianzhunxing1") || name.equals("railup") || name.equals("raildown")) {
bone.setHidden(true);
}
}
} else {
ItemModelHelper.hideAllAttachments(bone, name);