mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +00:00
replaced binary with hexadecimal
This commit is contained in:
parent
89138ae4ce
commit
5abe5bd43d
@ -68,7 +68,7 @@ class Binary{
|
|||||||
public static function writeMetadata(array $data){
|
public static function writeMetadata(array $data){
|
||||||
$m = "";
|
$m = "";
|
||||||
foreach($data as $bottom => $d){
|
foreach($data as $bottom => $d){
|
||||||
$m .= chr(($d[0] << 5) | ($bottom & 0b00011111));
|
$m .= chr(($d[0] << 5) | ($bottom & 0x1F));
|
||||||
switch($d[0]){
|
switch($d[0]){
|
||||||
case 0:
|
case 0:
|
||||||
$m .= self::writeByte($d[1]);
|
$m .= self::writeByte($d[1]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user