Protocol changes for 1.6.0.1

This commit is contained in:
Dylan K. Taylor
2018-06-15 19:24:23 +01:00
parent 6fce2b3349
commit 986077e03c
15 changed files with 266 additions and 42 deletions

View File

@ -421,8 +421,8 @@ class BlockFactory{
public static function registerStaticRuntimeIdMappings() : void{
/** @var mixed[] $runtimeIdMap */
$runtimeIdMap = json_decode(file_get_contents(\pocketmine\RESOURCE_PATH . "runtimeid_table.json"), true);
foreach($runtimeIdMap as $obj){
self::registerMapping($obj["runtimeID"], $obj["id"], $obj["data"]);
foreach($runtimeIdMap as $k => $obj){
self::registerMapping($k, $obj["id"], $obj["data"]);
}
}