This commit is contained in:
gnembon committed 2023-01-24 21:52:01 +01:00
1 parent 889e3b6999
commit a95622e749
4 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -4,9 +4,9 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/use # check these on https://fabricmc.net/use
# or better: https://modmuss50.me/fabric.html # or better: https://modmuss50.me/fabric.html
minecraft_version=23w03a minecraft_version=23w04a
loader_version=0.14.13 loader_version=0.14.13
fabric_version=0.72.0+1.19.3 fabric_version=0.73.1+1.19.4
# Mod Properties # Mod Properties
mod_version = 1.4.94 mod_version = 1.4.94
@@ -34,6 +34,6 @@ public class RecipeManager_scarpetMixin implements RecipeManagerInterface
if (typeRecipes.containsKey(output)) return Collections.singletonList(typeRecipes.get(output)); if (typeRecipes.containsKey(output)) return Collections.singletonList(typeRecipes.get(output));
final Registry<Item> regs = registryAccess.registryOrThrow(Registries.ITEM); final Registry<Item> regs = registryAccess.registryOrThrow(Registries.ITEM);
return Lists.newArrayList(typeRecipes.values().stream().filter( 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(); RegistryAccess regs = cc.registryAccess();
for (Recipe<?> recipe: recipes) for (Recipe<?> recipe: recipes)
{ {
ItemStack result = recipe.getResultItem(); ItemStack result = recipe.getResultItem(regs);
List<Value> ingredientValue = new ArrayList<>(); List<Value> ingredientValue = new ArrayList<>();
recipe.getIngredients().forEach( recipe.getIngredients().forEach(
ingredient -> ingredient ->
@@ -363,7 +363,7 @@ public class ShapesRenderer
{ {
// draw the item // draw the item
client.getItemRenderer().renderStatic(shape.item, transformType, light, 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(); matrices.popPose();