mirror of
https://github.com/kaboomserver/extras.git
synced 2025-04-22 09:23:40 -04:00
Use String constructor that implements the logic we want
This commit is contained in:
parent
f287fccda2
commit
75f3fb9516
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ public final class PlayerMessaging implements PluginMessageListener {
|
|||
if (isLast) break;
|
||||
}
|
||||
|
||||
return new String(Arrays.copyOf(buf, idx), StandardCharsets.US_ASCII);
|
||||
return new String(buf, 0, idx, StandardCharsets.US_ASCII);
|
||||
}
|
||||
|
||||
private void handleRegister(final Player player, final DataInput input) throws IOException {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue