Changes for 1.20.80

This commit is contained in:
Dylan K. Taylor
2024-04-25 11:31:41 +01:00
parent 50e2c469a5
commit 6077748caa
15 changed files with 173 additions and 134 deletions

View File

@ -407,7 +407,13 @@ class ParserPacketHandler extends PacketHandler{
$mappedType = $typeMap[$entry->getTypeId()];
if($entry instanceof ShapedRecipe){
$recipes[$mappedType][] = $this->shapedRecipeToJson($entry);
//all known recipes are currently symmetric and I don't feel like attaching a `symmetric` field to
//every shaped recipe for this - split it into a separate category instead
if(!$entry->isSymmetric()){
$recipes[$mappedType . "_asymmetric"][] = $this->shapedRecipeToJson($entry);
}else{
$recipes[$mappedType][] = $this->shapedRecipeToJson($entry);
}
}elseif($entry instanceof ShapelessRecipe){
$recipes[$mappedType][] = $this->shapelessRecipeToJson($entry);
}elseif($entry instanceof MultiRecipe){