mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Patch %0 client translation exploit
This commit is contained in:
parent
9808f874c8
commit
378c3d7994
@ -92,7 +92,7 @@ class BaseLang{
|
||||
$baseText = str_replace("{%$i}", $this->parseTranslation((string) $p), $baseText, $onlyPrefix);
|
||||
}
|
||||
|
||||
return $baseText;
|
||||
return str_replace("%0", "", $baseText); //fixes a client bug where %0 in translation will cause freeze
|
||||
}
|
||||
|
||||
public function translate(TextContainer $c){
|
||||
|
Loading…
x
Reference in New Issue
Block a user