22w04a
This commit is contained in:
1 parent
889e3b6999
commit
a95622e749
4 files changed
+5
-5
No files matched your search
@@ -34,6 +34,6 @@ public class RecipeManager_scarpetMixin implements RecipeManagerInterface
|
||||
if (typeRecipes.containsKey(output)) return Collections.singletonList(typeRecipes.get(output));
|
||||
final Registry<Item> regs = registryAccess.registryOrThrow(Registries.ITEM);
|
||||
return Lists.newArrayList(typeRecipes.values().stream().filter(
|
||||
r -> regs.getKey(r.getResultItem().getItem()).equals(output)).collect(Collectors.toList()));
|
||||
r -> regs.getKey(r.getResultItem(registryAccess).getItem()).equals(output)).collect(Collectors.toList()));
|
||||
}
|
||||
}
|
||||
@@ -134,7 +134,7 @@ public class Inventories {
|
||||
RegistryAccess regs = cc.registryAccess();
|
||||
for (Recipe<?> recipe: recipes)
|
||||
{
|
||||
ItemStack result = recipe.getResultItem();
|
||||
ItemStack result = recipe.getResultItem(regs);
|
||||
List<Value> ingredientValue = new ArrayList<>();
|
||||
recipe.getIngredients().forEach(
|
||||
ingredient ->
|
||||
|
||||
@@ -363,7 +363,7 @@ public class ShapesRenderer
|
||||
{
|
||||
// draw the item
|
||||
client.getItemRenderer().renderStatic(shape.item, transformType, light,
|
||||
OverlayTexture.NO_OVERLAY, matrices, immediate, (int) shape.key(client.level.registryAccess()));
|
||||
OverlayTexture.NO_OVERLAY, matrices, immediate, client.level, (int) shape.key(client.level.registryAccess()));
|
||||
}
|
||||
}
|
||||
matrices.popPose();
|
||||
|
||||
Reference in new issue
Block a user