fixed minedgs crash exploit

This commit is contained in:
GameHerobrine 2025-06-30 17:04:31 +03:00
parent de44bd6a0d
commit bf42bd0b6d

View file

@ -437,7 +437,7 @@ class Utils{
}
public static function readTriad($str){
return strlen($str) < 3 ? false : @unpack("N", "\x00$str")[1];
return strlen($str) < 3 ? 0 : @unpack("N", "\x00$str")[1]; //make sure this returns 0 on failure instead of false or else raknet parser will fall into infinite loop if start is false
}
public static function writeDataArray($data){