mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 18:29:46 +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){
|
||||
$m = "";
|
||||
foreach($data as $bottom => $d){
|
||||
$m .= chr(($d[0] << 5) | ($bottom & 0b00011111));
|
||||
$m .= chr(($d[0] << 5) | ($bottom & 0x1F));
|
||||
switch($d[0]){
|
||||
case 0:
|
||||
$m .= self::writeByte($d[1]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user