mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 01:16:15 +00:00
Packet crashes fixed :D
This commit is contained in:
@ -53,7 +53,7 @@ abstract class Terminal{
|
||||
if(self::$formattingCodes === null){
|
||||
$opts = getopt("", ["enable-ansi", "disable-ansi"]);
|
||||
if(isset($opts["disable-ansi"])){
|
||||
self::$hasFormattingCodes = false;
|
||||
self::$formattingCodes = false;
|
||||
}
|
||||
self::$formattingCodes = ((Utils::getOS() !== "win" and getenv("TERM") !== "") or isset($opts["enable-ansi"]));
|
||||
}
|
||||
|
Reference in New Issue
Block a user