mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
Fixed server crash
This commit is contained in:
parent
20035d18cd
commit
59a95aadd2
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue