Fix client crash on join. TODO: new recipe type 4 (no longer enchantment entry)

This commit is contained in:
Dylan K. Taylor 2016-11-04 12:57:11 +00:00
parent 7dc839fbe8
commit 75cc99a003

View File

@ -105,7 +105,9 @@ class CraftingDataPacket extends DataPacket{
}
private static function writeEnchantList(EnchantmentList $list, BinaryStream $stream){
//TODO: check this works on 0.16 (cannot currently test)
//TODO: new recipe type 4 (not enchanting recipe anymore)
return -1;
/*
$stream->putByte($list->getSize());
for($i = 0; $i < $list->getSize(); ++$i){
$entry = $list->getSlot($i);
@ -119,6 +121,7 @@ class CraftingDataPacket extends DataPacket{
}
return CraftingDataPacket::ENTRY_ENCHANT_LIST;
*/
}
public function addShapelessRecipe(ShapelessRecipe $recipe){