Fixed field type

This commit is contained in:
Shoghi Cervantes
2013-06-12 19:40:09 +02:00
parent 471de2d1c5
commit a7149ad9ef
2 changed files with 2 additions and 2 deletions

View File

@@ -220,7 +220,7 @@ class PocketMinecraftServer{
$d .= Utils::writeShort(strlen($data["url"])).$data["url"].(isset($data["timeout"]) ? Utils::writeShort($data["timeout"]) : Utils::writeShort(10));
$d .= Utils::writeShort(count($data["data"]));
foreach($data["data"] as $key => $value){
$d .= Utils::writeInt(strlen($key)).$key . Utils::writeInt(strlen($value)).$value;
$d .= Utils::writeShort(strlen($key)).$key . Utils::writeInt(strlen($value)).$value;
}
break;
default: