improve player hit box updating performance

This commit is contained in:
Bixilon 2021-11-28 19:30:36 +01:00
parent 6e36d90cde
commit 785ed9c544
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -332,8 +332,7 @@ abstract class Entity(
if (chestPlate != null && chestPlate.item is DyeableArmorItem) {
chestPlate.dyedColor?.let { return it }
}
val team = connection.scoreboardManager.getTeam(this.name)
val formattingCode = team?.formattingCode
val formattingCode = tabListItem.team?.formattingCode
if (formattingCode is RGBColor) {
return formattingCode
}