Sodium Reloaded (Unofficial)

Sodium Reloaded (Unofficial)

0 Downloads

Rendering giant tools in hand and in inventory issue - Twilight Forest Unofficial (Fabric 1.20.1)

marlester-dev opened this issue ยท 3 comments

commented

fixed on the mod's side by using

	@WrapOperation(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/entity/ItemRenderer;renderModelLists(Lnet/minecraft/client/resources/model/BakedModel;Lnet/minecraft/world/item/ItemStack;IILcom/mojang/blaze3d/vertex/PoseStack;Lcom/mojang/blaze3d/vertex/VertexConsumer;)V"))
	private void startRenderItem(ItemRenderer instance, BakedModel model, ItemStack stack, int combinedLight, int combinedOverlay, PoseStack matrixStack, VertexConsumer buffer, Operation<Void> original) {
		if (stack.getItem() instanceof GiantItem) {
			matrixStack.pushPose();
			GiantItemRenderHelper.handle(matrixStack);
			original.call(instance, model, stack, combinedLight, combinedOverlay, matrixStack, buffer);
			matrixStack.popPose();
		} else {
			original.call(instance, model, stack, combinedLight, combinedOverlay, matrixStack, buffer);
		}
	}
commented

you may close this issue if you want

commented

I don't think anything needs to be done on our side here, since the best way to avoid this is by rewriting the mixin as you have.