mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Fixed Entity metadata sending, sheeps on fire
This commit is contained in:
parent
9d1369bfe9
commit
129e099f88
3 changed files with 15 additions and 1 deletions
|
|
@ -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"]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue