mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
Fixed server crash
This commit is contained in:
@@ -95,6 +95,9 @@ class Utils extends Thread{
|
||||
}
|
||||
|
||||
public static function printable($str){
|
||||
if(!is_string($str)){
|
||||
return gettype($str);
|
||||
}
|
||||
return preg_replace('#([^\x20-\x7E])#', '.', $str);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user