mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 09:26:06 +00:00
Added 64-bit entity data field
This commit is contained in:
@ -116,6 +116,9 @@ class Binary{
|
||||
$m .= self::writeLInt($d[1][1]);
|
||||
$m .= self::writeLInt($d[1][2]);
|
||||
break;
|
||||
case Entity::DATA_TYPE_LONG:
|
||||
$m .= self::writeLLong($d[1]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
$m .= "\x7f";
|
||||
@ -179,6 +182,10 @@ class Binary{
|
||||
$offset += 4;
|
||||
}
|
||||
break;
|
||||
case Entity::DATA_TYPE_LONG:
|
||||
$r = self::readLLong(substr($value, $offset, 4));
|
||||
$offset += 8;
|
||||
break;
|
||||
default:
|
||||
return [];
|
||||
|
||||
@ -430,4 +437,4 @@ class Binary{
|
||||
return strrev(self::writeLong($value));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user