fixed readLong sending warning sometimes

This commit is contained in:
GameHerobrine 2024-07-06 00:51:08 +03:00
parent a637f2dce6
commit 9aa0986145

View file

@ -637,7 +637,7 @@ class Utils{
}
public static function readLong($x, $signed = true){
return @unpack("J", $x)[1]; //signed is useless since number cant be more than 2^63-1 in php
return strlen($x) < 8 ? 0 : @unpack("J", $x)[1]; //signed is useless since number cant be more than 2^63-1 in php
}
public static function writeLLong($value){