Skip to content

Commit

Permalink
fix: baby mobs are not rendered smaller (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoenix616 authored Feb 19, 2025
1 parent 3b95039 commit f1c945d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion renderer/viewer/lib/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,13 @@ export class Entities extends EventEmitter {
}
}
// ---
// not player
// set baby size
if (meta.baby) {
e.scale.set(0.5, 0.5, 0.5)
} else {
e.scale.set(1, 1, 1)
}
// entity specific meta
const textDisplayMeta = getSpecificEntityMetadata('text_display', entity)
const displayTextRaw = textDisplayMeta?.text || meta.custom_name_visible && meta.custom_name
const displayText = this.parseEntityLabel(displayTextRaw)
Expand Down

0 comments on commit f1c945d

Please sign in to comment.