mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +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){
|
public static function printable($str){
|
||||||
|
if(!is_string($str)){
|
||||||
|
return gettype($str);
|
||||||
|
}
|
||||||
return preg_replace('#([^\x20-\x7E])#', '.', $str);
|
return preg_replace('#([^\x20-\x7E])#', '.', $str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user