Fixed Entity metadata sending, sheeps on fire

This commit is contained in:
Shoghi Cervantes
2013-06-07 20:32:38 +02:00
parent 9d1369bfe9
commit 129e099f88
3 changed files with 15 additions and 1 deletions

View File

@@ -115,7 +115,7 @@ class Utils{
public static function writeMetadata($data){
$m = "";
foreach($data as $bottom => $d){
$m .= chr(($d["type"] << 5) & (0xE0 | $bottom));
$m .= chr(($d["type"] << 5) | ($bottom & 0b00011111));
switch($d["type"]){
case 0:
$m .= Utils::writeByte($d["value"]);