mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Fixed server crash
This commit is contained in:
parent
20035d18cd
commit
59a95aadd2
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user