Skip to content

Commit

Permalink
Update client jar, fix wrong targets on ItemRendererMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Mar 22, 2023
1 parent 13e09d0 commit b8bf673
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fabric_version=0.74.2+1.19.4

maven_group = eu.pb4

mod_version = 0.4.0
mod_version = 0.4.1

minecraft_version_supported = ">=1.19.4-"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ private PolymerCommonUtils(){}

public static final SimpleEvent<ResourcePackChangeCallback> ON_RESOURCE_PACK_STATUS_CHANGE = new SimpleEvent<>();

private final static String SAFE_CLIENT_SHA1 = "1da03ea094c11b77e6784e6a816b73f5f5dc57b7";
private final static String SAFE_CLIENT_SHA1 = "958928a560c9167687bea0cefeb7375da1e552a8";
private final static String SAFE_CLIENT_URL = "https://piston-data.mojang.com/v1/objects/" + SAFE_CLIENT_SHA1 + "/client.jar";
@Nullable
public static Path getClientJar() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static Recipe<?> createSmeltingRecipe(Recipe<?> input) {
* @return the Vanilla recipe
*/
static Recipe<?> createSmithingRecipe(Recipe<?> input) {
return new LegacySmithingRecipe(input.getId(), Ingredient.EMPTY, Ingredient.EMPTY, input.getOutput(null));
return new SmithingTransformRecipe(input.getId(), Ingredient.EMPTY, Ingredient.EMPTY, Ingredient.EMPTY, input.getOutput(null));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
@Mixin(ItemRenderer.class)
public class ItemRendererMixin {
@ModifyVariable(method = {
"renderItem(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/render/model/json/ModelTransformation$Mode;ZLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/world/World;III)V",
"renderItem(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/render/model/json/ModelTransformationMode;ZLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/world/World;III)V",
"renderGuiItemModel",
"renderItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/render/model/json/ModelTransformation$Mode;ZLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;IILnet/minecraft/client/render/model/BakedModel;)V"
"renderItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/render/model/json/ModelTransformationMode;ZLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;IILnet/minecraft/client/render/model/BakedModel;)V"
}, at = @At("HEAD"), require = 0)
private ItemStack polymer$replaceItemStack(ItemStack stack) {
return CoreClientUtils.getRenderingStack(stack);
Expand Down

0 comments on commit b8bf673

Please sign in to comment.