mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
fixed readLong sending warning sometimes
This commit is contained in:
parent
a637f2dce6
commit
9aa0986145
1 changed files with 1 additions and 1 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue