Merge commit 'ab57914322d8e93790a88604b9bb3046a759da22'

This commit is contained in:
Dylan K. Taylor 2020-01-18 18:22:57 +00:00
commit 886ac4b788

View File

@ -225,7 +225,7 @@ class CraftingDataPacket extends DataPacket implements ClientboundPacket{
return CraftingDataPacket::ENTRY_SHAPED; return CraftingDataPacket::ENTRY_SHAPED;
} }
private static function writeFurnaceRecipe(FurnaceRecipe $recipe, NetworkBinaryStream $stream){ private static function writeFurnaceRecipe(FurnaceRecipe $recipe, NetworkBinaryStream $stream) : int{
$stream->putVarInt($recipe->getInput()->getId()); $stream->putVarInt($recipe->getInput()->getId());
$result = CraftingDataPacket::ENTRY_FURNACE; $result = CraftingDataPacket::ENTRY_FURNACE;
if(!$recipe->getInput()->hasAnyDamageValue()){ //Data recipe if(!$recipe->getInput()->hasAnyDamageValue()){ //Data recipe