Fixed A-Z range

This commit is contained in:
Shoghi Cervantes 2015-06-06 17:57:07 +02:00
parent 96f67bdadf
commit 21c6eeef11
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89

View File

@ -1629,7 +1629,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
for($i = 0; $i < $len and $valid; ++$i){
$c = ord($packet->username{$i});
if(($c >= ord("a") and $c <= ord("z")) or
($c >= ord("Z") and $c <= ord("Z")) or
($c >= ord("A") and $c <= ord("Z")) or
($c >= ord("0") and $c <= ord("9")) or $c === "_"
){
continue;