Avoid unnecessary TypeConverter::getInstance() calls

we already have it available within these contexts
This commit is contained in:
Dylan K. Taylor
2023-11-17 14:00:25 +00:00
parent fbcf4649eb
commit a1748a92ca
2 changed files with 3 additions and 3 deletions

View File

@@ -160,7 +160,7 @@ final class CraftingDataCache{
}
$potionContainerChangeRecipes = [];
$itemTypeDictionary = TypeConverter::getInstance()->getItemTypeDictionary();
$itemTypeDictionary = $converter->getItemTypeDictionary();
foreach($manager->getPotionContainerChangeRecipes() as $recipe){
$input = $itemTypeDictionary->fromStringId($recipe->getInputItemId());
$ingredient = $converter->coreRecipeIngredientToNet($recipe->getIngredient())->getDescriptor();