mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-25 18:17:38 +01:00
Fixed TranslatableComponents missing the end of the translated text
This commit is contained in:
parent
3f9ca85831
commit
4ef15ae764
@ -132,7 +132,10 @@ public class TranslatableComponent extends BaseComponent
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ( trans.length() != position )
|
||||||
|
{
|
||||||
|
builder.append( trans.substring( position, trans.length() ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
super.toPlainText( builder );
|
super.toPlainText( builder );
|
||||||
}
|
}
|
||||||
@ -143,6 +146,7 @@ public class TranslatableComponent extends BaseComponent
|
|||||||
String trans = locales.getString( translate );
|
String trans = locales.getString( translate );
|
||||||
if ( trans == null )
|
if ( trans == null )
|
||||||
{
|
{
|
||||||
|
addFormat( builder );
|
||||||
builder.append( translate );
|
builder.append( translate );
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
@ -173,7 +177,11 @@ public class TranslatableComponent extends BaseComponent
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ( trans.length() != position )
|
||||||
|
{
|
||||||
|
addFormat( builder );
|
||||||
|
builder.append( trans.substring( position, trans.length() ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
super.toLegacyText( builder );
|
super.toLegacyText( builder );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user