Skip to content

Commit

Permalink
fix: minecraft vanilla top level description text
Browse files Browse the repository at this point in the history
  • Loading branch information
CosminPerRam committed Aug 9, 2024
1 parent e98b776 commit 2e1bd62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocols/minecraft.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default class minecraft extends Core {
if (typeof description === 'string') {
name = description
}
if (!name && typeof description === 'object' && description.text) {
if (!name && typeof description === 'object' && description.text && description?.text?.trim()) {
name = description.text
}
if (!name && typeof description === 'object' && description.extra) {
Expand Down

0 comments on commit 2e1bd62

Please sign in to comment.