mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-14 15:35:31 +00:00
Fix client crash on join. TODO: new recipe type 4 (no longer enchantment entry)
This commit is contained in:
parent
7dc839fbe8
commit
75cc99a003
@ -105,7 +105,9 @@ class CraftingDataPacket extends DataPacket{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static function writeEnchantList(EnchantmentList $list, BinaryStream $stream){
|
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());
|
$stream->putByte($list->getSize());
|
||||||
for($i = 0; $i < $list->getSize(); ++$i){
|
for($i = 0; $i < $list->getSize(); ++$i){
|
||||||
$entry = $list->getSlot($i);
|
$entry = $list->getSlot($i);
|
||||||
@ -119,6 +121,7 @@ class CraftingDataPacket extends DataPacket{
|
|||||||
}
|
}
|
||||||
|
|
||||||
return CraftingDataPacket::ENTRY_ENCHANT_LIST;
|
return CraftingDataPacket::ENTRY_ENCHANT_LIST;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addShapelessRecipe(ShapelessRecipe $recipe){
|
public function addShapelessRecipe(ShapelessRecipe $recipe){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user