diff --git a/lib/pc/index.js b/lib/pc/index.js index 1e8039a..e57e55c 100644 --- a/lib/pc/index.js +++ b/lib/pc/index.js @@ -20,7 +20,12 @@ module.exports = (data, staticData) => { formatString: staticData.language[d.translation_key] || d.translation_key /* chat type minecraft:raw has the formatString given directly by the translation key */, parameters: d.parameters } - data.chatFormattingById[chatType.id] = n + if (staticData.supportFeature('incrementedChatType')) { + // 1.21 - Player chat packet chat type now starts at 1 + data.chatFormattingById[chatType.id + 1] = n + } else { + data.chatFormattingById[chatType.id] = n + } data.chatFormattingByName[chatType.name] = n } },