mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 10:05:59 +00:00
Use commons' substring function to avoid IndexOutOfBoundsExceptions.
This commit is contained in:
parent
fc1c487dce
commit
891d8d178f
@ -885,7 +885,7 @@ public class TFM_PlayerListener implements Listener
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
player.setPlayerListName(name.substring(0, 16));
|
player.setPlayerListName(StringUtils.substring(name, 0, 16));
|
||||||
}
|
}
|
||||||
catch (IllegalArgumentException ex)
|
catch (IllegalArgumentException ex)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user