From 75cc99a0035a7d0c498859ee0e2e7b2bad12c879 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 4 Nov 2016 12:57:11 +0000 Subject: [PATCH] Fix client crash on join. TODO: new recipe type 4 (no longer enchantment entry) --- src/pocketmine/network/protocol/CraftingDataPacket.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pocketmine/network/protocol/CraftingDataPacket.php b/src/pocketmine/network/protocol/CraftingDataPacket.php index 4fc72a546..3d9112587 100644 --- a/src/pocketmine/network/protocol/CraftingDataPacket.php +++ b/src/pocketmine/network/protocol/CraftingDataPacket.php @@ -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){